[][src]Enum cpal::UnknownTypeOutputBuffer

pub enum UnknownTypeOutputBuffer<'a> {
    U16(OutputBuffer<'a, u16>),
    I16(OutputBuffer<'a, i16>),
    F32(OutputBuffer<'a, f32>),
}

This is the struct that is provided to you by cpal when you want to write samples to a buffer.

Since the type of data is only known at runtime, you have to fill the right buffer.

Variants

U16(OutputBuffer<'a, u16>)

Samples whose format is u16.

I16(OutputBuffer<'a, i16>)

Samples whose format is i16.

F32(OutputBuffer<'a, f32>)

Samples whose format is f32.

Methods

impl<'a> UnknownTypeOutputBuffer<'a>[src]

pub fn len(&self) -> usize[src]

Returns the length of the buffer in number of samples.

Auto Trait Implementations

Blanket Implementations

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.

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

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

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