[][src]Struct sample::signal::DetectEnvelope

pub struct DetectEnvelope<S, D> where
    S: Signal,
    D: Detect<S::Frame>, 
{ /* fields omitted */ }

An adaptor that detects and yields the envelope of the signal.

Implementations

impl<S, D> DetectEnvelope<S, D> where
    S: Signal,
    D: Detect<S::Frame>, 
[src]

pub fn set_attack_frames(&mut self, frames: f32)[src]

Set the Detector's attack time as a number of frames.

pub fn set_release_frames(&mut self, frames: f32)[src]

Set the Detector's release time as a number of frames.

pub fn into_parts(self) -> (S, Detector<S::Frame, D>)[src]

Consumes Self and returns the inner signal S and Detector.

Trait Implementations

impl<S: Clone, D: Clone> Clone for DetectEnvelope<S, D> where
    S: Signal,
    D: Detect<S::Frame>,
    S::Frame: Clone
[src]

impl<S, D> Signal for DetectEnvelope<S, D> where
    S: Signal,
    D: Detect<S::Frame>, 
[src]

type Frame = D::Output

The Frame type returned by the Signal.

Auto Trait Implementations

impl<S, D> RefUnwindSafe for DetectEnvelope<S, D> where
    D: RefUnwindSafe,
    S: RefUnwindSafe,
    <D as Detect<<S as Signal>::Frame>>::Output: RefUnwindSafe

impl<S, D> Send for DetectEnvelope<S, D> where
    D: Send,
    S: Send,
    <D as Detect<<S as Signal>::Frame>>::Output: Send

impl<S, D> Sync for DetectEnvelope<S, D> where
    D: Sync,
    S: Sync,
    <D as Detect<<S as Signal>::Frame>>::Output: Sync

impl<S, D> Unpin for DetectEnvelope<S, D> where
    D: Unpin,
    S: Unpin,
    <D as Detect<<S as Signal>::Frame>>::Output: Unpin

impl<S, D> UnwindSafe for DetectEnvelope<S, D> where
    D: UnwindSafe,
    S: UnwindSafe,
    <D as Detect<<S as Signal>::Frame>>::Output: UnwindSafe

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<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

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

impl<S> FromSample<S> for S[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> ToSample<U> for T where
    U: FromSample<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.