Skip to main content

Module io

Module io 

Source
Expand description

Audio file I/O helpers.

Available only when the std feature is enabled (the default on desktop targets). Wraps Symphonia’s probe → format-reader → decoder pipeline behind two simple, allocation-conservative helpers:

Both helpers return mono f32 PCM in [-1.0, 1.0] (multi-channel files are downmixed by averaging channels per frame), ready to feed into any Fingerprinter.

Supported formats are whatever Symphonia provides with the features enabled in audiofp’s Cargo.toml: MP3, FLAC, WAV, OGG-Vorbis, AAC-in-MP4, and raw PCM at the time of writing.

Re-exports§

pub use decoder::decode_to_mono;
pub use decoder::decode_to_mono_at;

Modules§

decoder
One-shot audio file decoding via Symphonia.