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]

[src]

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

[src]

Deprecated

Deprecated. Use sample_size instead.

Trait Implementations

impl Clone for SampleFormat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for SampleFormat
[src]

impl Debug for SampleFormat
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for SampleFormat
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for SampleFormat
[src]

Auto Trait Implementations

impl Send for SampleFormat

impl Sync for SampleFormat