GET_SOUND_INPUT_CAP_PARM(3alleg4)

✨ NAME ✨

get_sound_input_cap_parm β€” she detects whether the recording parameters you're asking for are even supported. Bestie, this is from the Allegro manual, the Allegro game programming library πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro.h>

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

πŸ’– DESCRIPTION πŸ’–

Okay so real talk: this function checks whether the recording frequency, the number of bits, and the mono/stereo mode you picked are supported by the current audio driver β€” and like, how they're supported, because apparently there's nuance and we love that for us πŸ’…


πŸ¦‹ RETURN VALUE πŸ¦‹

The way this function hands you back a whole personality test for your recording setup, no cap. It returns one of these:

  • 0 β€” it is impossible to record in this format 😭
  • 1 β€” recording is possible, but audio output will be suspended πŸ’€
  • 2 β€” recording is possible at the same time as playing other sounds (full duplex sound card, main character energy fr fr πŸ‘‘)
  • -n β€” the sampling rate isn't supported, but rate n would work instead ✨
Not me being obsessed with the -n one β€” she's literally telling you which rate to use instead. That's a supportive icon right there 🫢

πŸŽ€ SEE ALSO πŸŽ€


Okay that's the whole page, bestie β€” go forth and record something iconic πŸŒˆπŸ’œ This was Allegro, version 4.4.3, signing off πŸŽ€βœ¨