Enum cpal::UnknownTypeOutputBuffer [] [src]

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

Samples whose format is u16.

Samples whose format is i16.

Samples whose format is f32.

Methods

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

[src]

Returns the length of the buffer in number of samples.

Trait Implementations

Auto Trait Implementations

impl<'a> !Send for UnknownTypeOutputBuffer<'a>

impl<'a> !Sync for UnknownTypeOutputBuffer<'a>