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 ratenwould 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 π
start_sound_input(3alleg4)get_sound_input_cap_bits(3alleg4)get_sound_input_cap_rate(3alleg4)get_sound_input_cap_stereo(3alleg4)
Okay that's the whole page, bestie β go forth and record something iconic ππ This was Allegro, version 4.4.3, signing off πβ¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms