ENUM SNDRV_COMPRESS_ENCODER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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, iykyk
  • SNDRV_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