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

The number of channels.

sample_rate

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

The number of bits per sample.

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

Trait Implementations

Derived Implementations

impl Eq for WavSpec

impl PartialEq for WavSpec

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

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

impl Debug for WavSpec

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

impl Copy for WavSpec

impl Clone for WavSpec

fn clone(&self) -> WavSpec

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