digi_recorder(3)
β¨ 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms