get_sound_input_cap_parm(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– get_sound_input_cap_parm(3) πŸ’–

okay so bestie, this one lives in the Allegro manual β€” it's a page from the Allegro game programming library and it's literally about asking your sound card "hey girl, can you even record like this??" 🎀✨


✨ NAME ✨

get_sound_input_cap_parm β€” detects if the specified recording parameters are supported. Allegro game programming library. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

int get_sound_input_cap_parm(int rate, int bits, int stereo);

πŸ’… DESCRIPTION πŸ’…

so basically this function checks whether the recording frequency, the number of bits, and the mono/stereo mode you're asking for are supported by the current audio driver β€” and how they're supported. it's giving vibe check for your sound setup πŸ”₯

like, you hand it the specs, it tells you what's actually possible. no cap.


🌸 RETURN VALUE 🌸

the function hands back one of these possible values, and honestly each one is a whole mood:

  • 0 = it is impossible to record in this format. nope. not happening. πŸ’€
  • 1 = recording is possible, but audio output will be suspended 😭 like you can record but the playback girlies have to sit this one out.
  • 2 = recording is possible at the same time as playing other sounds (full duplex sound card). iconic behavior, she can do both πŸ‘‘
  • -n = sampling rate not supported, but rate n would work instead. so like, not that rate bestie, but this one? yes 🫢

πŸ¦‹ SEE ALSO πŸ¦‹


k that's the whole page, mwah πŸ’œ this was Allegro version 4.4.3, and yes the copyright/version energy is very much real. periodt. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from