AL_SEEK_AUDIO_STREAM_SECS(3)
π NAME π
al_seek_audio_stream_secs β bestie, this is the Allegro 5 API β¨
So like, the manual page name is al_seek_au...stream_secs(3) and it lives in the Library Functions Manual family, but honestly? All you need to know is right here π«Ά
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_audio.h>
bool al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM *stream, double time)
Two args, one bool out. Clean. Iconic. No notes π
π DESCRIPTION π
Okay so here's the tea β: al_seek_audio_stream_secs sets the streaming file's playing position to time. That's it. That's the whole vibe. You point at a moment, the stream jumps there, slay π
It returns true on success. Literally just true. Not false, not "maybe", not "it depends on your star sign" β true, or you're not getting the good news π
Important caveat, bestie, don't skip this one π Currently this can only be called on streams created withal_load_audio_stream(3),al_play_audio_stream(3),al_load_audio_stream_f(3)oral_play_audio_stream_f(3). That's the whole guest list β if your stream wasn't made by one of those four, this function is not for you, no cap π«
So like β four creators, one seek function. Check your stream's origin story before you call this, fr fr π¦
π SEE ALSO π
Related reading for the curious bestie π§β¨
al_get_audio_stream_position_secs(3)β where are we right now, asking for a friendal_get_audio_stream_length_secs(3)β how long is this thing anyway
And that's the page, bestie β mwah π This lil writeup comes courtesy of the Allegro reference manual, and the page itself is filed under al_seek_au...stream_secs(3) (yes the truncated name is canon, we don't make the rules π). Go forth and seek responsibly ππ
π¦ 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