AL_SEEK_AUDIO_STREAM_SECS(3)

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

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


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