Expand description
Audio encode layer — WAV / MP3 / M4A output.
| Format | Backend |
|---|---|
| WAV | hound (lossless, preserves bit depth) |
| MP3 | shine-rs (Pure Rust) |
| M4A | oxideav-aac + mp4 mux (Pure-Rust AAC-LC) |
Structs§
- Encode
Options - Encoding options for lossy outputs.
Enums§
- AacEncoder
- Downmix
Mode - Policy for reducing a surround input to a codec’s supported channel count.
- Output
Format - Output container inferred from file extension.
Constants§
- DEFAULT_
M4A_ BITRATE - Default AAC bitrate (bps, not kbps).
- DEFAULT_
MP3_ BITRATE - Default MP3 bitrate (kbps).
Functions§
- write_
audio - Write audio to a file; format is chosen from the path extension.
- write_
mp3 - Write planar
f64audio to an MP3 file. - write_
mp3_ with_ downmix - Write planar
f64audio to MP3 with an explicit surround downmix policy.