al_set_audio_stream_loop_secs(3alleg5)
π al_set_audio_stream_loop_secs β Allegro 5 API π
okay bestie, welcome to the alleg5 manual, we're doing audio loop stuff today and honestly? it's giving main character energy π
β¨ NAME β¨
al_set_audio_stream_loop_secs β the Allegro 5 API function that sets your stream's loop points, in seconds β±οΈβ¨
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_audio.h>
bool al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM *stream,
double start, double end)
π¦ DESCRIPTION π¦
So here's the tea: this one sets the loop points for the stream in seconds π
. You hand it a start and an end, both doubles, and that's the chunk of the stream that's gonna loop forever and ever, like your comfort playlist π§πΈ.
heads up bestie β currently this can only be called on streams created withal_load_audio_stream(3alleg5),al_play_audio_stream(3alleg5),al_load_audio_stream_f(3alleg5)oral_play_audio_stream_f(3alleg5). if your stream came from somewhere else, it's a no from this function, sorry π
and that's the whole page, no cap π«Ά β this was the Allegro reference manual entry for al_set_audio_stream_loop_secs, filed under the alleg5 manual. no date on this one bestie, so just vibe with it. mwah, go loop something iconic ππβ
π¦ 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