ENUM SND_COMPR_STATE(9)
π 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
- 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