STRUCT SND_ENC_FLAC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

Okay so bestie, welcome to the struct snd_enc_flac(9) page in the Kernel API Manual β€” and no cap, this one is all about FLAC encoder parameters ✨. The name is literally struct snd_enc_flac, and its whole main-character job is holding FLAC encoder parameter info. Slay.


✨ SYNOPSIS ✨

struct snd_enc_flac {
    __u32 num;
    __u32 gain;
 };

🫢 Members 🫢

  • num β€” this is the serial number, and it’s valid only for OGG formats. It needs to be set by the application. iykyk πŸ’–
  • gain β€” this one adds replay gain tags. cute, useful, done πŸŽ€

🌸 DESCRIPTION 🌸

These options were extracted from the FLAC online documentation at http://flac.sourceforge.net/documentation_tools_flac.html πŸ“šβœ¨

To make the API simpler, it is assumed that the user will select quality profiles. Additional options that affect encoding quality and speed can be added at a later stage if needed. lowkey sensible, ngl πŸ¦‹

By default the Subset format is used by encoders. periodt πŸ’…

TAGS such as pictures, etc, cannot be handled by an offloaded encoder and are not supported in this API. Not me being dramatic, but this is a real limitation β€” those TAGS are straight-up not supported here 😭

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/uapi/sound/compress_params.h β€” plus struct snd_enc_vorbis(9), struct snd_enc_real(9), and struct snd_dec_opus(9) πŸ‘‘βœ¨

🫢 bye bestie β€” this little page came from source/version ./include/uapi/sound, dated October 2026. πŸ’–

πŸ“¦ where this page comes from