https://github.com/oniani/wavepcm
Fast WAVE PCM file format encoder and decoder
https://github.com/oniani/wavepcm
pcm rust wav wave
Last synced: about 2 months ago
JSON representation
Fast WAVE PCM file format encoder and decoder
- Host: GitHub
- URL: https://github.com/oniani/wavepcm
- Owner: oniani
- License: mit
- Created: 2021-09-22T03:43:03.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-01T08:19:32.000Z (over 4 years ago)
- Last Synced: 2025-10-30T03:09:06.211Z (9 months ago)
- Topics: pcm, rust, wav, wave
- Language: Rust
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wavepcm
Fast WAVE PCM file format encoder and decoder in pure Rust.
## API
Below find an example usage of the library:
```rust
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(())
}
```
## References
- [WAV](https://en.wikipedia.org/wiki/WAV)
## License
[MIT License](LICENSE)