Registry / utility / lewton

lewton

JSON →
library0.10.2rscratesunverified

Pure Rust vorbis decoder.

# Cargo.toml [dependencies] lewton = "0.10.2"
INSTALL
IMPORT
SIG · LEWTON
L
lewton
utilityrustv0.10.2
harness data pending
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.

Agent activity
6 hits · last 30 days
node
6
Resources
lewton — cargo add lewton · libregistry