pub trait FxChain: Default {
// Required method
fn construct_and_connect<B: AudioBackend>(
&mut self,
first_node_id: NodeID,
first_node_num_out_channels: NonZeroChannelCount,
dst_node_id: NodeID,
dst_num_channels: NonZeroChannelCount,
cx: &mut FirewheelCtx<B>,
) -> Vec<NodeID>;
}Expand description
A trait describing an “FX chain” for use in an AudioNodePool.
Required Methods§
Sourcefn construct_and_connect<B: AudioBackend>(
&mut self,
first_node_id: NodeID,
first_node_num_out_channels: NonZeroChannelCount,
dst_node_id: NodeID,
dst_num_channels: NonZeroChannelCount,
cx: &mut FirewheelCtx<B>,
) -> Vec<NodeID>
fn construct_and_connect<B: AudioBackend>( &mut self, first_node_id: NodeID, first_node_num_out_channels: NonZeroChannelCount, dst_node_id: NodeID, dst_num_channels: NonZeroChannelCount, cx: &mut FirewheelCtx<B>, ) -> Vec<NodeID>
Construct the nodes in the FX chain and connect them, returning a list of the new node ids.
first_node_id- The ID of the first node in this fx chain instance.first_node_num_out_channels- The number of output channels in the first node.dst_node_id- The ID of the node that the last node in this FX chain should connect to.dst_num_channels- The number of input channels ondst_node_id.cx- The firewheel context.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.