ENUM SND_COMPR_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum snd_compr_state(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes that Kernel API Manual β€” and today's main character is enum snd_compr_state, aka the vibe tracker for a compression task. it's literally just "task state". that's the whole NAME. short, sweet, iconic. πŸŽ€


✨ NAME ✨

enum snd_compr_state β€” task state 🫢


🌸 SYNOPSIS 🌸

enum snd_compr_state {
    SND_COMPRESS_TASK_STATE_IDLE ,
    SND_COMPRESS_TASK_STATE_ACTIVE ,
    SND_COMPRESS_TASK_STATE_FINISHED

};

πŸ¦‹ Constants πŸ¦‹

three states, three moods, no cap. here's the rundown:

  • SND_COMPRESS_TASK_STATE_IDLE β€” task is not queued. it's giving "resting, booked, but not on the schedule yet" energy πŸ™ˆ
  • SND_COMPRESS_TASK_STATE_ACTIVE β€” task is in the queue. she's in the lineup, bestie, literally waiting her turn πŸ’…
  • SND_COMPRESS_TASK_STATE_FINISHED β€” task was processed, output is available. she ate, she's done, the results are ready to be admired ✨
fr fr, those are the only three. no secret fourth state. iykyk.

🌈 SEE ALSO 🌈

like, go read these next, they're all in the kernel file ./include/uapi/sound/compress_offload.h and they're all lowkey obsessed with each other:

  • 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)
  • enum sndrv_compress_encoder(9)
  • struct snd_compr_metadata(9)
  • struct snd_compr_task(9)
  • struct snd_compr_task_status(9)

πŸ’– that's the whole page, bestie β€” sent straight from ./include/uapi/sound, dated October 2026. slay, go forth and compress responsibly. πŸŒŸπŸ‘‘

πŸ“¦ where this page comes from