Skip to content

oniani/wavepcm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wavepcm

Fast WAVE PCM file format encoder and decoder in pure Rust.

API

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(())
}

References

License

MIT License

About

Fast WAVE PCM file format encoder and decoder

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages