pub struct OutputBlock<S: Sample> { /* private fields */ }Expand description
The terminal output block for a DSP graph.
Collects final audio from upstream blocks and makes it available for playback or further processing outside the graph.
Implementations§
Trait Implementations§
Source§impl<S: Sample> Block<S> for OutputBlock<S>
impl<S: Sample> Block<S> for OutputBlock<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<OutputBlock<S>> for BlockType<S>
impl<S: Sample> From<OutputBlock<S>> for BlockType<S>
Source§fn from(block: OutputBlock<S>) -> Self
fn from(block: OutputBlock<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> Freeze for OutputBlock<S>
impl<S> RefUnwindSafe for OutputBlock<S>where
S: RefUnwindSafe,
impl<S> Send for OutputBlock<S>
impl<S> Sync for OutputBlock<S>
impl<S> Unpin for OutputBlock<S>where
S: Unpin,
impl<S> UnwindSafe for OutputBlock<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