Enum cpal::SampleFormat [] [src]

pub enum SampleFormat {
    I16,
    U16,
    F32,
}

Format that each sample has.

Variants

The value 0 corresponds to 0.

The value 0 corresponds to 32768.

The boundaries are (-1.0, 1.0).

Methods

impl SampleFormat
[src]

Returns the size in bytes of a sample of this format.

Trait Implementations

impl Clone for SampleFormat
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for SampleFormat
[src]

impl Debug for SampleFormat
[src]

Formats the value using the given formatter.

impl PartialEq for SampleFormat
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for SampleFormat
[src]