pub trait AudioNode: Send + Sync {
// Required methods
fn process(&mut self, inputs: &[&[f64]], output: &mut [f64], frames: usize);
fn node_id(&self) -> NodeId;
fn kind(&self) -> NodeKind;
// Provided method
fn channels(&self) -> usize { ... }
}Expand description
Trait for any audio-processing node in the graph.
All processing is f64 internally. Conversion to f32 happens only at the hardware output boundary.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".