Fast WAVE PCM file format encoder and decoder in pure Rust.
Below find an example usage of the library:
use wavepcm::Format;
fn main() -> Result<(), anyhow::Error> {
let decoding = Format::decode("sample.wav")?;
decoding.check()?;
decoding.info()?;
let encoding = Format::encode(decoding.data, 2, 44_100, 32)?;
encoding.check()?;
encoding.info()?;
encoding.write("sample_new.wav")?;
Ok(())
}