ALLEGRO_AUDIO_RECORDER_EVENT(3alleg5)
β¨ ALLEGRO_AUDIO_RECORDER_EVENT β¨
okay bestie, so this is a page from the Allegro 5 API manual β like, the 3alleg5 section, iykyk β and we're gonna talk about the little struct that carries your audio recorder tea. π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_audio.h>
typedef struct ALLEGRO_AUDIO_RECORDER_EVENT ALLEGRO_AUDIO_RECORDER_EVENT;
like, that's the whole vibe right there. one include, one typedef, we move. π
π DESCRIPTION π
So this is the structure that holds the audio recorder event data. Every single event type is gonna have this in it, no exceptions:
.sourceβ a pointer to the audio recorder ποΈ
And then, depending on the event type, these lil guys show up too:
.bufferβ a pointer to the buffer containing the audio samples π«Ά.samplesβ the number of samples that are available. and bestie, note that it's samples, NOT bytes. do not come for me with bytes math, it's giving wrong answers. π
β¨ Since 5.1.1 β¨
π¦ SEE ALSO π¦
al_get_audio_recorder_event(3alleg5)β go read this one too, it's the whole reason you're here fr fr
π [Unstable API]: The API may need a slight redesign. so likeβ¦ it works, it slays, but it might get a lil glow-up later. no cap, just don't build your entire personality on it staying exactly the same. π
and that's the page, periodt. π this was pulled straight from the Allegro reference manual β yes, the whole <rainbow>ALLEGRO_AUDIO_RECORDER_EVENT(3alleg5)</rainbow> moment β so if you're out here citing sources, that's the one. mwah, go record some audio, you got this. πβ¨πΈπ¦π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms