Re-exports§
pub use core::compute_crc32;pub use core::compute_ebu_r128_loudness;pub use core::extract_spectral_fingerprint;pub use core::extract_waveform_peaks;pub use core::rice;pub use core::ChannelData;pub use core::FloError;pub use core::FloErrorExt;pub use core::FloErrorKind;pub use core::FloFile;pub use core::FloResult;pub use core::FrameType;pub use core::LoudnessMetrics;pub use core::ResidualEncoding;pub use core::HEADER_SIZE;pub use core::MAGIC;pub use core::VERSION_MAJOR;pub use core::VERSION_MINOR;pub use lossless::lpc;pub use lossless::Decoder;pub use lossless::Encoder;pub use lossy::deserialize_frame;pub use lossy::serialize_frame;pub use lossy::BlockSize;pub use lossy::Mdct;pub use lossy::PsychoacousticModel;pub use lossy::QualityPreset;pub use lossy::TransformDecoder as LossyDecoder;pub use lossy::TransformEncoder as LossyEncoder;pub use lossy::TransformFrame;pub use lossy::WindowType;pub use lossy::FRAME_COEFFICIENTS;pub use lossy::LONG_BLOCK_SIZE;pub use lossy::SHORTS_PER_GROUP;pub use lossy::SHORT_BLOCK_SIZE;pub use lossy::SHORT_GROUP_OFFSET;pub use streaming::DecoderState;pub use streaming::EncodedFrame;pub use streaming::StreamingAudioInfo;pub use streaming::StreamingDecoder;pub use streaming::StreamingEncoder;pub use core::metadata::*;
Modules§
- core
- dsp
- DSP primitives
- lossless
- Lossless encoding for flo
- lossy
- Transform-based lossy encoder for flo
- seeking
- streaming
- streaming encode/decode for flo audio
Structs§
- Audio
Info - info about a flo file
- Reader
- binary reader for flo format
- Wasm
Streaming Decoder - Wasm
Streaming Encoder - Encodes samples frame-by-frame as they arrive, returning encoded frames ready for transmission. Use this for low-latency streaming encoding where you push samples and pull frames.
- Writer
- binary writer for flo format
Functions§
- create_
metadata - Create metadata from basic fields and serialize to MessagePack
- create_
metadata_ from_ object - Create metadata from a JavaScript object
- decode
- decode flo file to samples
- decode_
frame_ at - Decode a single frame by index without decoding the entire file
- encode
- encode samples to flo lossless
- encode_
lossy - encode samples to flo lossy
- encode_
with_ bitrate - encode to flo lossy with target bitrate
- extract_
dominant_ frequencies_ to_ vec - Extract dominant frequencies from spectral fingerprint
- extract_
waveform_ peaks_ to_ struct - Extract waveform peaks from audio samples (native version)
- extract_
waveform_ rms_ to_ struct - Extract waveform RMS from audio samples
- format_
time - Format time in seconds to MM:SS or H:MM:SS string
- format_
time_ ms - Format time in milliseconds to MM:SS or H:MM:SS string
- get_
cover_ art - Get cover art from a flo file
- get_
metadata - Extract metadata from a flo file
- get_
metadata_ bytes - Get just the metadata bytes from a flo file
- get_
metadata_ bytes_ native - Get just the metadata bytes from a flo file
- get_
section_ markers - Get section markers from a flo file
- get_
synced_ lyrics - Get synced lyrics from a flo file
- get_toc
- Extract TOC (Table of Contents) entries from a flo file
- get_
waveform_ data - Get waveform data from a flo file for instant visualization
- has_
metadata - does the file have metadata? (native)
- has_
metadata_ wasm - does the file have metadata? (wasm binding)
- info
- Get information about a flo file
- seek_
to_ time - Seek to a specific time in milliseconds
- set_
metadata - Replace just the metadata in a flo file (convenience function)
- set_
metadata_ field - Set a single field in existing metadata bytes
- spectral_
similarity_ score - Compute spectral similarity between two fingerprints
- strip_
metadata - Remove all metadata from a flo file
- strip_
metadata_ bytes - Remove all metadata from a flo file
- update_
metadata - update metadata without re-encoding audio
- update_
metadata_ bytes - update metadata without re-encoding (native)
- validate
- Validate flo file integrity
- version
- get lib version