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

Which encoding format this file uses. If the format is Format::Extended, then the actual audio format is instead determined by the subformat field.

Number of distinct audio channels.

Number of audio samples per second.

Number of bits used to represent each sample.

Number of frames present in the file. Each frame contains one sample per channel.

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]

Formats the value using the given formatter.

impl Copy for WaveInfo
[src]

impl Clone for WaveInfo
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more