al_set_audio_stream_loop_secs(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 with al_load_audio_stream(3alleg5), al_play_audio_stream(3alleg5), al_load_audio_stream_f(3alleg5) or al_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