Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
VorbisDecoder
✓ use lewton::VorbisDecoder;
Decodes Ogg Vorbis audio data.
use lewton::VorbisDecoder;
use std::io::Cursor;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let ogg_data = vec![]; // Replace with actual Ogg Vorbis data
let cursor = Cursor::new(ogg_data);
let mut decoder = VorbisDecoder::new(cursor)?;
for packet in decoder.packets() {
let packet = packet?;
println!("Decoded packet with {} samples", packet.samples);
}
Ok(())
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.10.2latest on crates.io
Audit
Dependencies
No dependency data recorded yet.