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
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]
impl<'a> UnknownTypeOutputBuffer<'a>
Auto Trait Implementations
impl<'a> !Send for UnknownTypeOutputBuffer<'a>
impl<'a> !Send for UnknownTypeOutputBuffer<'a>
impl<'a> !Sync for UnknownTypeOutputBuffer<'a>
impl<'a> !Sync for UnknownTypeOutputBuffer<'a>