pub struct ChannelMergerBlock<S: Sample> { /* private fields */ }Expand description
Merges individual mono inputs into a multi-channel output.
Each input channel is copied to the corresponding output port, combining separate mono signals into a single multi-channel stream.
§Example
A 4-channel merger takes 4 separate mono signals and combines them into a 4-channel output that can be processed by blocks expecting multi-channel input.
Implementations§
Source§impl<S: Sample> ChannelMergerBlock<S>
impl<S: Sample> ChannelMergerBlock<S>
Trait Implementations§
Source§impl<S: Sample> Block<S> for ChannelMergerBlock<S>
impl<S: Sample> Block<S> for ChannelMergerBlock<S>
Source§fn process(
&mut self,
inputs: &[&[S]],
outputs: &mut [&mut [S]],
_modulation_values: &[S],
_context: &DspContext,
)
fn process( &mut self, inputs: &[&[S]], outputs: &mut [&mut [S]], _modulation_values: &[S], _context: &DspContext, )
Process audio through this block. Read more
Source§fn input_count(&self) -> usize
fn input_count(&self) -> usize
Returns the number of input ports this block accepts.
Source§fn output_count(&self) -> usize
fn output_count(&self) -> usize
Returns the number of output ports this block produces.
Source§fn modulation_outputs(&self) -> &[ModulationOutput]
fn modulation_outputs(&self) -> &[ModulationOutput]
Returns the modulation outputs this block provides. Read more
Source§fn channel_config(&self) -> ChannelConfig
fn channel_config(&self) -> ChannelConfig
Returns how this block handles multi-channel audio. Read more
Source§impl<S: Sample> From<ChannelMergerBlock<S>> for BlockType<S>
impl<S: Sample> From<ChannelMergerBlock<S>> for BlockType<S>
Source§fn from(block: ChannelMergerBlock<S>) -> Self
fn from(block: ChannelMergerBlock<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> Freeze for ChannelMergerBlock<S>
impl<S> RefUnwindSafe for ChannelMergerBlock<S>where
S: RefUnwindSafe,
impl<S> Send for ChannelMergerBlock<S>
impl<S> Sync for ChannelMergerBlock<S>
impl<S> Unpin for ChannelMergerBlock<S>where
S: Unpin,
impl<S> UnwindSafe for ChannelMergerBlock<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more