This is a crate for reading in and writing out wave files. It supports bit depths of 8, 16, and 24 bits, any number of channels, and uncompressed PCM data. Unfortunately other types of data format (e.g. compressed WAVE files) are not supported. There is also no support for any metadata chunks or any chunks other than the "fmt " and "data" chunks.
```rust use std::fs::File; use std::path::Path;
let mut inpfile = File::open(Path::new("data/sine.wav"))?; let (header, data) = wav::read(&mut inpfile)?;
let mut outfile = File::create(Path::new("data/output.wav"))?; wav::write(header, data, &mut outfile)?; ```