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
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.
sample_format: SampleFormat
Whether the wav's samples are float or integer values.
Trait Implementations
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
impl Copy for WavSpec
[src]
impl Debug 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 !=
.