pub struct Chain<A, B> {
pub first: A,
pub second: B,
}Expand description
Combines two processors in series: A → B.
Audio flows through processor A, then through processor B. Parameters from both processors are merged.
Fields§
§first: A§second: BTrait Implementations§
Source§impl<A, B> Processor for Chain<A, B>
impl<A, B> Processor for Chain<A, B>
Source§type Params = ChainParams<<A as Processor>::Params, <B as Processor>::Params>
type Params = ChainParams<<A as Processor>::Params, <B as Processor>::Params>
Associated parameter type for this processor. Read more
Source§fn process(
&mut self,
buffer: &mut [&mut [f32]],
transport: &Transport,
params: &<Chain<A, B> as Processor>::Params,
)
fn process( &mut self, buffer: &mut [&mut [f32]], transport: &Transport, params: &<Chain<A, B> as Processor>::Params, )
Process a buffer of audio samples. Read more
Source§fn set_sample_rate(&mut self, _sample_rate: f32)
fn set_sample_rate(&mut self, _sample_rate: f32)
Called when the sample rate changes. Read more
Auto Trait Implementations§
impl<A, B> Freeze for Chain<A, B>
impl<A, B> RefUnwindSafe for Chain<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Chain<A, B>
impl<A, B> Sync for Chain<A, B>
impl<A, B> Unpin for Chain<A, B>
impl<A, B> UnwindSafe for Chain<A, B>where
A: UnwindSafe,
B: 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