digi_recorder(3alleg4)

πŸ’– digi_recorder β€” the Allegro manual, but make it cute πŸ’–

okay so bestie, welcome to the digi_recorder page from the Allegro manual ✨ this one is short but she is IMPORTANT, so let's get into it πŸŽ€


🌸 NAME 🌸

digi_recorder β€” the hook that pings you the second a new sample buffer shows up πŸ‘€ Allegro game programming library energy, fr fr.


✨ SYNOPSIS ✨

#include <allegro.h>

extern void (*digi_recorder)();

that's it. that's the whole vibe check πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen. If you set this function, the input driver is gonna call it whenever a new sample buffer becomes available πŸŽ€ and the moment that happens, you can hit up read_sound_input() to copy that data somewhere more permanent β€” like actually save it before it evaporates, iykyk πŸ’€

⚠️ but babes, real talk: this thing runs in an interrupt context. So it has to execute very quickly, like blink-and-you-miss-it fast 😭 the code and all memory that it touches must be locked, and you cannot call any operating system routines or access disk files. no cap, none. zero. zip. nada. πŸ™ˆ

and the biggest plot twist of all: this currently works only under DOS 🫠 iconic retro behavior honestly.


πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page bestie, short but she ate πŸ’…βœ¨

signing off with love from the Allegro crew β€” this is version 4.4.3, and the page is digi_recorder(3alleg4) πŸŽ€πŸ¦‹