pub trait DynAudioNode {
// Required methods
fn info(&self) -> AudioNodeInfo;
fn construct_processor(
&self,
cx: ConstructProcessorContext<'_>,
) -> Box<dyn AudioNodeProcessor>;
// Provided method
fn update(&mut self, cx: UpdateContext<'_>) { ... }
}Expand description
A type-erased dyn-compatible AudioNode.
Required Methods§
Sourcefn info(&self) -> AudioNodeInfo
fn info(&self) -> AudioNodeInfo
Get information about this node.
This method is only called once after the node is added to the audio graph.
Sourcefn construct_processor(
&self,
cx: ConstructProcessorContext<'_>,
) -> Box<dyn AudioNodeProcessor>
fn construct_processor( &self, cx: ConstructProcessorContext<'_>, ) -> Box<dyn AudioNodeProcessor>
Construct a realtime processor for this node.
cx- A context for interacting with the Firewheel context. This context also includes information about the audio stream.
Provided Methods§
Sourcefn update(&mut self, cx: UpdateContext<'_>)
fn update(&mut self, cx: UpdateContext<'_>)
If AudioNodeInfo::call_update_method was set to true, then the Firewheel
context will call this method on every update cycle.
cx- A context for interacting with the Firewheel context.