[−][src]Crate rkpi2
Pure Rust implementation of the RKPI2 audio format. This format is aimed to replace WAVE with a simple to parse an minimal header strutcture, ability to easily parse and optional compression with Zstd.
This can both mux and demux the header data, from file objects and has a simple interface.
Example
use std::io::Cursor; fn main() { let out = Cursor::new(Vec::new()); let mut rkout = mux(Box::new(out), Hdr { format: Fmt::Int8, rate: 8000, channels: 1 }, None).unwrap(); rkout.write_all(vec![0u8; 8000].as_slice()).unwrap(); }
Structs
Hdr | Header of the RKPI2 format, it contains necessary metadata to reproduce encapsulated audio data. |
Enums
Fmt | Sampleformat to code PCM audio data with. |
RErr |