install_sound_input(3)

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

πŸ’– install_sound_input(3) πŸ’–

okay so bestie, welcome to the Allegro manual ✨ this one's about install_sound_input, aka the moment your program stops just playing sound and starts ✨recording✨ it. main character energy fr.


🌸 NAME 🌸

install_sound_input β€” boots up the sound recorder module. this is part of the Allegro game programming library, iykyk πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

int install_sound_input(int digi, int midi);

✨ DESCRIPTION ✨

So like. This function initialises the sound recorder module πŸ’… and there's a very important prerequisite, so listen up:

You must install the normal sound playback system before calling this routine. no skipping ahead, bestie, it's giving "prereq not met" 😭

The two card parameters β€” digi and midi β€” should use the same constants as install_sound(). And that includes:

  • DIGI_NONE and MIDI_NONE β€” use these to disable parts of the module πŸ™ˆ
  • DIGI_AUTODETECT and MIDI_AUTODETECT β€” use these to just let it guess the hardware, lowkey iconic 🧚

⭐ RETURN VALUE ⭐

  • 0 β€” slay, it worked, success πŸ’–
  • anything else β€” the machine or driver just doesn't support sound recording, and that's so valid but also so sad 🫢

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole vibe, bestie πŸŽ€ this lil page came straight outta the Allegro manual, version 4.4.3 β€” periodt, no cap, go record something cute βœ¨πŸ’…

πŸ“¦ where this page comes from