Struct oddio::Gain[][src]

pub struct Gain<T: ?Sized> { /* fields omitted */ }

Scales amplitude by a dynamically-adjustable factor

Implementations

impl<T> Gain<T>[src]

pub fn new(signal: T) -> Self[src]

Apply dynamic gain to signal

Trait Implementations

impl<'a, T: 'a> Controlled<'a> for Gain<T>[src]

type Control = GainControl<'a, T>

The interface through which this signal can be safely controlled

impl<T> Filter for Gain<T>[src]

type Inner = T

Type of signal transformed by this filter

impl<T: Signal> Signal for Gain<T> where
    T::Frame: Frame
[src]

type Frame = T::Frame

Type of frames yielded by sample, e.g. [Sample; 2] for stereo

Auto Trait Implementations

impl<T> !RefUnwindSafe for Gain<T>[src]

impl<T: ?Sized> Send for Gain<T> where
    T: Send
[src]

impl<T> !Sync for Gain<T>[src]

impl<T: ?Sized> Unpin for Gain<T> where
    T: Unpin
[src]

impl<T: ?Sized> UnwindSafe for Gain<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.