Skip to main content

Module encode

Module encode 

Source
Expand description

Audio encode layer — WAV / MP3 / M4A output.

FormatBackend
WAVhound (lossless, preserves bit depth)
MP3shine-rs (Pure Rust)
M4Aoxideav-aac + mp4 mux (Pure-Rust AAC-LC)

Structs§

EncodeOptions
Encoding options for lossy outputs.

Enums§

AacEncoder
DownmixMode
Policy for reducing a surround input to a codec’s supported channel count.
OutputFormat
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 f64 audio to an MP3 file.
write_mp3_with_downmix
Write planar f64 audio to MP3 with an explicit surround downmix policy.