ALLEGRO_PLAYMODE(3alleg5)
π ALLEGRO_PLAYMODE π
okay bestie, welcome to the Allegro 5 API corner of the manual, this is ALLEGRO_PLAYMODE(3alleg5) and it's literally just an enum that tells your audio how to behave. no cap. π
β¨ SYNOPSIS β¨
#include <allegro5/allegro_audio.h>
enum ALLEGRO_PLAYMODE
πΈ DESCRIPTION πΈ
so this is the sample and stream playback mode enum. it's giving "how many times do you want this audio to go", and the answer is one of these four icons π
ALLEGRO_PLAYMODE_ONCEβ the sample/stream gets played from start to finish, and then it stops. that's it. one and done. π«ΆALLEGRO_PLAYMODE_LOOPβ the sample/stream plays from start to finish (or between the two loop points, if you set those). when it hits the end, it restarts from the beginning. forever. iconic behaviour, no skips. πβ¨ALLEGRO_PLAYMODE_LOOP_ONCEβ literally just likeALLEGRO_PLAYMODE_ONCE, except it respects the loop end point. so it's a once, but a polite once that knows where the finish line is. πALLEGRO_PLAYMODE_BIDIRβ the sample plays from start to finish (or between the two loop points). when it reaches the end, it reverses the playback direction and plays until it reaches the beginning, and then it flips the direction back to normal. it's giving ping-pong, it's giving yoyo, it's giving main character energy. π
β οΈ okay important note: ALLEGRO_PLAYMODE_BIDIR is rarely supported for streams. so like, samples? yes. streams? don't count on it, bestie. π
and that's the whole vibe check. this page came from the Allegro reference manual, it's the 3alleg5 manual for ALLEGRO_PLAYMODE (the Allegro 5 API, duh π), and the date's whatever's on your local copy of the docs β check the header if you need the exact stamp, i'm not your calendar bestie. π¦β¨
π¦ 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