AUDIOSTREAM(3)
π AUDIOSTREAM(3) β the Allegro manual, but make it cute π
okay bestie, gather round, we're talking about AUDIOSTREAM β a struct from the Allegro game programming library that literally just... stores an audiostream. that's it. that's the whole job. iconique.
β¨ SYNOPSIS β¨
#include <allegro.h>
typedef struct AUDIOSTREAM
π DESCRIPTION π
so inside this little guy lives exactly one field, and here it is:
int voice;β the hardware voice used for the sample πΈ
that's the member, bestie. it's giving minimalism.
Now for the tea: an AUDIOSTREAM is a structure holding an audiostream, which is basically a convenience wrapper around a SAMPLE structure. what's it for? two very main character reasons:
- it lets you double buffer sounds that are too big to fit into memory π
- or it lets you do clever things like generating the sound wave real time β¨
π«Ά heads up though: you should not modify the value of the voice directly. don't do it. not even a little. no cap.
but!! the good news is you can use all of the voice functions in the chapter "Digital sample routines" to modify the properties of the sound β like the frequency, for example. so you're not powerless, you just gotta go through the proper channels, iykyk. π
π SEE ALSO π
and that's the whole page, bestie!! π¦ this lil writeup came from the Allegro manual, version 4.4.3, and yes the header/footer both said AUDIOSTREAM(3) because that's just how manpages do. mwah, go make some beautiful real-time sound waves, you absolute legend πβ¨π
π¦ 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