Struct hound::WavSpec [] [src]

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

Specifies properties of the audio data.

Fields

channels: u16

The number of channels.

sample_rate: u32

The number of samples per second.

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

bits_per_sample: u16

The number of bits per sample.

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

Trait Implementations

impl Eq for WavSpec
[src]

impl PartialEq for WavSpec
[src]

fn eq(&self, __arg_0: &WavSpec) -> bool

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

fn ne(&self, __arg_0: &WavSpec) -> bool

This method tests for !=.

impl Debug for WavSpec
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for WavSpec
[src]

impl Clone for WavSpec
[src]

fn clone(&self) -> WavSpec

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more