digi_recorder(3)

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

✨ NAME ✨

digi_recorder β€” the hook that pings you the second a new sample buffer shows up, bestie. It's part of the Allegro game programming library, and yes, this is the digi_recorder(3) page from the Allegro manual. πŸ’–


🌈 SYNOPSIS 🌈

#include <allegro.h>

extern void (*digi_recorder)();

πŸŽ€ DESCRIPTION πŸŽ€

okay so picture this: if you set digi_recorder to point at some function, the input driver will call it whenever a new sample buffer becomes available. at that exact moment you can use read_sound_input() to copy the data into a more permanent location. it's giving "you have one shot, don't blow it" energy. πŸ‘‘

but β€” and this is the big one β€” it runs in an interrupt context. so your function has to execute very quickly, like really quickly, no cap. the code and all memory that it touches must be locked. and you absolutely cannot call any operating system routines or access disk files. nope, not even a little. not the vibe. 🚫

🚨 bestie, this is serious: interrupt context means no OS calls, no disk files, and everything locked down. do not play with this. πŸ’€

this currently works only under DOS. so if you're on something else, it's giving not available, sorry babe. 😭


πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ that's the whole page, bestie. this has been Allegro, version 4.4.3. now go slay those audio buffers. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from