Struct wavefile::WaveInfo
[−]
[src]
pub struct WaveInfo { pub audio_format: Format, pub channels: u16, pub sample_rate: u32, pub byte_rate: u32, pub block_align: u16, pub bits_per_sample: u16, pub total_frames: u32, pub valid_bps: Option<u16>, pub channel_mask: Option<u32>, pub subformat: Option<Format>, }
Contains information included in the wavefile's header section, describing the format, sample size, and number of audio channels present.
Fields
audio_format: Format
Which encoding format this file uses.
If the format is Format::Extended
, then the actual audio format is
instead determined by the subformat
field.
channels: u16
Number of distinct audio channels.
sample_rate: u32
Number of audio samples per second.
byte_rate: u32
block_align: u16
bits_per_sample: u16
Number of bits used to represent each sample.
total_frames: u32
Number of frames present in the file. Each frame contains one sample per channel.
valid_bps: Option<u16>
channel_mask: Option<u32>
subformat: Option<Format>
For Format::Extended
files, this field contains the actual audo encoding
of the file, either Format::PCM
or Format::IEEEFloat
.
Trait Implementations
impl Debug for WaveInfo
[src]
impl Copy for WaveInfo
[src]
impl Clone for WaveInfo
[src]
fn clone(&self) -> WaveInfo
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