DynAudioNode

Trait DynAudioNode 

Source
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§

Source

fn info(&self) -> AudioNodeInfo

Get information about this node.

This method is only called once after the node is added to the audio graph.

Source

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§

Source

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.

Implementors§