Waverly is a Rust library that allows for easy parsing and writing of WAV files with the primary
goal of providing access to all metadata within a WAV file, not just the format and data chunks.
It's secondary goal is to support no_std
. If you only care about the data chunk already
formatted as samples, there are plenty of good alternatives.
```rust use std::fs::File; use std::io::Cursor; use waverly::Wave;
fn main() -> Result<(), waverly::WaverlyError> { let file = File::open("./meta/16bit-2ch-float-peak.wav")?; let wave: Wave = Wave::from_reader(file)?;
let mut virt_file = Cursor::new(Vec::new());
wave.write(&mut virt_file)?;
Ok(())
} ```
no_std
supportno_std
Multimedia Programming Interface and Data Specifications, starting on page 56