snd_pcm_capture_hw_avail(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– snd_pcm_capture_hw_avail πŸ’–

okay so this is a page from the Kernel API Manual (yeah, the kernel, we're fancy now ✨) and it's all about snd_pcm_capture_hw_avail β€” literally the little function that tells you how much free space your capture stream has. bestie, it's a one-liner of a manpage but we're gonna treat it with the respect it deserves πŸŽ€


🌸 NAME 🌸

snd_pcm_capture_hw_avail β€” get the free space for capture πŸ¦‹

like, the actual free room you've got to capture into. that's the whole vibe check.


✨ SYNOPSIS ✨

snd_pcm_sframes_t snd_pcm_capture_hw_avail (struct snd_pcm_runtime
*runtime );

one function, one argument, returns a snd_pcm_sframes_t. no drama, no cap πŸ’…


🫢 ARGUMENTS 🫢

  • runtime β€” the PCM runtime instance 🎧. yeah that's it. that's the whole argument list. she's low maintenance, we love her.

πŸ”₯ RETURN πŸ”₯

the available frame size πŸ‘‘ β€” literally how many frames of free space you've got. that's your answer, periodt.


🌈 SEE ALSO 🌈

okay this is the part where the page goes absolutely feral with cross-references, and we are NOT skipping a single one, so buckle up bestie 😭 every single one of these, exactly as written:

like I said. feral. but we respect the hustle πŸ«‘πŸ’œ


ngl if you're writing ALSA capture code, this whole list is your group chat. screen it, bestie πŸ“±βœ¨

and that's the whole page!! short and iconic, just how we like it πŸ§šβ€β™€οΈ so go forth and check your capture free space, main character πŸ’…

signing off from ./include/sound, dated October 2026 β€” mwah, see you in the next manpage πŸŽ€πŸ’–

πŸ“¦ where this page comes from