Enum cpal::UnknownTypeBuffer
[−]
[src]
pub enum UnknownTypeBuffer<'a> { U16(Buffer<'a, u16>), I16(Buffer<'a, i16>), F32(Buffer<'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(Buffer<'a, u16>)
Samples whose format is u16
.
I16(Buffer<'a, i16>)
Samples whose format is i16
.
F32(Buffer<'a, f32>)
Samples whose format is f32
.