Struct rsynth::backend::combined::dummy::AudioDummy[][src]

pub struct AudioDummy<S> { /* fields omitted */ }

Dummy backend that does nothing, useful for testing and e.g. for offline renderers that have no audio input or output.

Implementations

impl<S> AudioDummy<S>[src]

pub fn with_sample_rate_and_length(
    frames_per_second: u32,
    length_in_frames: usize
) -> Self
[src]

Create a new AudioDummy with the given sample rate, in frames per second.

pub fn new() -> Self[src]

👎 Deprecated since 0.1.2:

Use with_sample_rate_and_length instead.

Create a new AudioDummy with the “default” sample rate of 44100 frames per second (CD quality) and a length of 0 samples.

Trait Implementations

impl<S> AudioReader<S> for AudioDummy<S> where
    S: Copy
[src]

type Err = Infallible

The type of the error that occurs when reading data.

impl<S> AudioWriter<S> for AudioDummy<S> where
    S: Copy
[src]

type Err = Infallible

The type of the error that occurs when reading data.

Auto Trait Implementations

impl<S> RefUnwindSafe for AudioDummy<S> where
    S: RefUnwindSafe

impl<S> Send for AudioDummy<S> where
    S: Send

impl<S> Sync for AudioDummy<S> where
    S: Sync

impl<S> Unpin for AudioDummy<S> where
    S: Unpin

impl<S> UnwindSafe for AudioDummy<S> where
    S: 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>, 

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

impl<S> FromSample<S> for S

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

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 

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.