Struct audio_processor_utility::gain::GainProcessor
source · [−]pub struct GainProcessor<SampleType> { /* private fields */ }Expand description
An AudioProcessor which applies gain to an input signal
Implementations
sourceimpl<SampleType> GainProcessor<SampleType>
impl<SampleType> GainProcessor<SampleType>
sourcepub fn new_with_handle(handle: Shared<GainProcessorHandle>) -> Self
pub fn new_with_handle(handle: Shared<GainProcessorHandle>) -> Self
Construct a GainProcessor with a certain GainProcessorHandle
Trait Implementations
sourceimpl<SampleType> Default for GainProcessor<SampleType>
impl<SampleType> Default for GainProcessor<SampleType>
sourceimpl<SampleType> SimpleAudioProcessor for GainProcessor<SampleType>where
SampleType: Float + Send + Sync + Mul<Output = SampleType>,
impl<SampleType> SimpleAudioProcessor for GainProcessor<SampleType>where
SampleType: Float + Send + Sync + Mul<Output = SampleType>,
type SampleType = SampleType
sourcefn s_process(&mut self, sample: SampleType) -> SampleType
fn s_process(&mut self, sample: SampleType) -> SampleType
Process a single sample. If the input is mult-channel, will run for each channel by default.
If the processor is multi-channel, implement s_process_frame instead. Read more
sourcefn s_prepare(&mut self, _settings: AudioProcessorSettings)
fn s_prepare(&mut self, _settings: AudioProcessorSettings)
Prepare for playback based on current audio settings
sourcefn s_process_frame(&mut self, frame: &mut [Self::SampleType])
fn s_process_frame(&mut self, frame: &mut [Self::SampleType])
Process a multi-channel frame. Read more
Auto Trait Implementations
impl<SampleType> RefUnwindSafe for GainProcessor<SampleType>where
SampleType: RefUnwindSafe,
impl<SampleType> Send for GainProcessor<SampleType>where
SampleType: Send,
impl<SampleType> Sync for GainProcessor<SampleType>where
SampleType: Sync,
impl<SampleType> Unpin for GainProcessor<SampleType>where
SampleType: Unpin,
impl<SampleType> UnwindSafe for GainProcessor<SampleType>where
SampleType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more