Enum cpal::UnknownTypeInputBuffer [] [src]

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

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

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

Variants

Samples whose format is u16.

Samples whose format is i16.

Samples whose format is f32.

Methods

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

[src]

Returns the length of the buffer in number of samples.

Trait Implementations

Auto Trait Implementations

impl<'a> Send for UnknownTypeInputBuffer<'a>

impl<'a> Sync for UnknownTypeInputBuffer<'a>