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