Enum cpal::SampleFormat
source · [−]pub enum SampleFormat {
I16,
U16,
F32,
}
Expand description
Format that each sample has.
Variants
I16
The value 0 corresponds to 0.
U16
The value 0 corresponds to 32768.
F32
The boundaries are (-1.0, 1.0).
Implementations
Returns the size in bytes of a sample of this format.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SampleFormat
impl Send for SampleFormat
impl Sync for SampleFormat
impl Unpin for SampleFormat
impl UnwindSafe for SampleFormat
Blanket Implementations
Mutably borrows from an owned value. Read more