pub struct GainDsp { /* private fields */ }Expand description
Gain processor - applies amplitude scaling to audio.
This is a simple but essential DSP building block that multiplies all samples by a gain factor.
Trait Implementations§
Source§impl Processor for GainDsp
impl Processor for GainDsp
Source§type Params = GainParams
type Params = GainParams
Associated parameter type for this processor. Read more
Source§fn process(
&mut self,
buffer: &mut [&mut [f32]],
_transport: &Transport,
params: &<GainDsp as Processor>::Params,
)
fn process( &mut self, buffer: &mut [&mut [f32]], _transport: &Transport, params: &<GainDsp 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 Freeze for GainDsp
impl RefUnwindSafe for GainDsp
impl Send for GainDsp
impl Sync for GainDsp
impl Unpin for GainDsp
impl UnwindSafe for GainDsp
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