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) ππ¦
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms