Struct redox::WavFile [] [src]

pub struct WavFile {
    pub channels: u16,
    pub sample_rate: u32,
    pub sample_bits: u16,
    pub data: Vec<u8>,
}

A WAV file

Fields

channels

The number of channels

sample_rate

The sample rate

sample_bits

The sample bits

data

The data

Methods

impl WavFile

fn new() -> Self

Create a new empty WAV file

fn from_data(file_data: &[u8]) -> Self

Create a WAV file from data