Struct hound::WavSpec [] [src]

pub struct WavSpec {
    pub channels: u16,
    pub sample_rate: u32,
    pub bits_per_sample: u16,
    pub sample_format: SampleFormat,
}

Specifies properties of the audio data.

Fields

The number of channels.

The number of samples per second.

A common value is 44100, this is 44.1 kHz which is used for CD audio.

The number of bits per sample.

A common value is 16 bits per sample, which is used for CD audio.

Whether the wav's samples are float or integer values.

Trait Implementations

impl Clone for WavSpec
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for WavSpec
[src]

impl Debug for WavSpec
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for WavSpec
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for WavSpec
[src]

Auto Trait Implementations

impl Send for WavSpec

impl Sync for WavSpec