wav 0.3.0

This is a crate for reading in and writing out wave files. It supports bit depths of 8, 16, and 24 bits, and any number of channels.
Documentation

WAV

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.

Example

use std::fs::File;
use std::path::Path;

let mut inp_file = File::open(Path::new("data/sine.wav")).unwrap();
let (header, data) = wav::read_wav(&mut inp_file).unwrap();

let mut out_file = File::create(Path::new("data/sine.wav")).unwrap();
wav::write_wav(header, data, &mut out_file).unwrap();