ENUM SNDRV_COMPRESS_ENCODER(9)
β¨ enum sndrv_compress_encoder(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a tiny little page but it's lowkey important, so let's get into it π«Ά
πΈ NAME πΈ
enum sndrv_compress_encoder β it's the encoder metadata key, periodt π
that's literally the whole name. one job. iconic.
π SYNOPSIS π
enum sndrv_compress_encoder {
SNDRV_COMPRESS_ENCODER_PADDING ,
SNDRV_COMPRESS_ENCODER_DELAY
};
like, that's it. two constants. the whole enum. no cap π§
π Constants π
SNDRV_COMPRESS_ENCODER_PADDINGβ the number of samples that the encoder appends at the end of the track π so like, extra bits tacked on the tail end, iykykSNDRV_COMPRESS_ENCODER_DELAYβ the number of samples that the encoder inserts at the beginning of the track π¦ so this one's the little warm-up stretch at the front, before the actual audio starts
fr fr both of these are just sample counts the encoder tells you about β one for the front, one for the back. don't mix them up bestie π
π SEE ALSO π
Kernel file ./include/uapi/sound/compress_offload.h β that's where all this lives π
and the whole friend group it rolls with:
struct snd_compressed_buffer(9)struct snd_compr_params(9)struct snd_compr_tstamp(9)struct snd_compr_tstamp64(9)struct snd_compr_avail(9)struct snd_compr_avail64(9)struct snd_compr_caps(9)struct snd_compr_codec_caps(9)struct snd_compr_metadata(9)struct snd_compr_task(9)enum snd_compr_state(9)struct snd_compr_task_status(9)
go read those too, they're all serving main character energy in the compressed-audio saga ππ₯
mwah π that's the whole page β brought to you from ./include/uapi/sound, dated October 2026, and it's still enum sndrv_compress_encoder(9) in case you forgot already π love u, go write some audio drivers bestie πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms