ALLEGRO_PLAYMODE(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

okay bestie, welcome to ALLEGRO_PLAYMODE(3) from the Library Functions Manual β€” this page is Allegro 5 API business, specifically the playback-mode enum, and yes we're gonna make it cute πŸ’–

πŸŽ€ NAME πŸŽ€

ALLEGRO_PLAYMODE β€” Allegro 5 API, that's the name, short and iconic ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro_audio.h>

enum ALLEGRO_PLAYMODE

🌸 DESCRIPTION 🌸

Vibe check: this enum is literally the sample + stream playback mode selector, no cap 🎧. You pick a mode, and Allegro knows how the audio should behave.

  • ALLEGRO_PLAYMODE_ONCE β€” the sample/stream is played from start to finish an then it stops. One pass, done, bye πŸ’€
  • ALLEGRO_PLAYMODE_LOOP β€” the sample/stream is played from start to finish (or between the two loop points). When it reaches the end, it restarts from the beginning. It's giving endless-loop main character energy πŸ”πŸ‘‘
  • ALLEGRO_PLAYMODE_LOOP_ONCE β€” just like ALLEGRO_PLAYMODE_ONCE, but respects the loop end point. Same one-shot vibe, but it actually listens to that loop end point πŸ’…
  • ALLEGRO_PLAYMODE_BIDIR β€” the sample is played 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, when it reverses the direction back to normal. This mode is rarely supported for streams, so stream besties should lowkey not count on it 😭

That's the whole page, bestie: it comes from the Allegro reference manual β€” that's the source/version on this footer β€” and there's no date in the footer, so I'm not inventing one. Mwah πŸ’œπŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms