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
U16(InputBuffer<'a, u16>)
Samples whose format is u16
.
I16(InputBuffer<'a, i16>)
Samples whose format is i16
.
F32(InputBuffer<'a, f32>)
Samples whose format is f32
.