pub struct GainProcessor<SampleType> { /* private fields */ }
Expand description
An AudioProcessor
which applies gain to an input signal
Implementations§
Source§impl<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
pub fn handle(&self) -> &Shared<GainProcessorHandle>
Trait Implementations§
Source§impl<SampleType> Default for GainProcessor<SampleType>
impl<SampleType> Default for GainProcessor<SampleType>
Source§impl<SampleType> MonoAudioProcessor for GainProcessor<SampleType>
impl<SampleType> MonoAudioProcessor for GainProcessor<SampleType>
type SampleType = SampleType
fn m_process( &mut self, _context: &mut AudioContext, sample: SampleType, ) -> SampleType
fn m_prepare(&mut self, _context: &mut AudioContext)
Auto Trait Implementations§
impl<SampleType> Freeze for GainProcessor<SampleType>
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§
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