start_sound_input(3alleg4)

✨ start_sound_input ✨

okay so this is a page from the Allegro manual (yes, the Allegro game programming library, she's iconic) and today we're talking about start_sound_input πŸ’–


πŸŽ€ NAME πŸŽ€

start_sound_input β€” bestie, she starts recording in the format you picked. Allegro game programming library energy fr fr.


🌸 SYNOPSIS 🌸

#include <allegro.h>

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

πŸ¦‹ DESCRIPTION πŸ¦‹

So like, start_sound_input starts recording in the specified format. That's the whole vibe. πŸ‘‘

But here's the tea: if your sound card is not full duplex, she will suspend audio playback as necessary. Like, she's not gonna let playback and recording fight over the aux cord β€” she handles it. Not me being thoughtful for once 😭


πŸ’… RETURN VALUE πŸ’…

  • If it works β†’ she returns the buffer size in bytes ✨
  • If it flops β†’ she returns zero on error πŸ’€

🌈 SEE ALSO 🌈

the girlies she runs with, aka the whole squad:


and that's the whole page bestie, no cap 🫢 this was brought to you by Allegro, version 4.4.3, and the page herself, start_sound_input(3alleg4) β€” go forth and record, mwah πŸ’‹