Expand description
FLAC audio encoder.
Encodes interleaved i32 PCM samples into FLAC frames.
§Encoding pipeline
- Frame blocking (split PCM into block-size chunks).
- Per-channel LPC analysis (autocorrelation + Levinson-Durbin).
- Residual computation (signal − LPC prediction).
- Rice coding (optimal Rice parameter per partition).
- Frame serialisation (FLAC binary format with CRC-16).
Structs§
- Flac
Config - FLAC encoder configuration.
- Flac
Encoder - FLAC audio encoder.
- Flac
Frame - One encoded FLAC frame.