AL_GET_AUDIO_STREAM_POSITION_SECS(3)

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

okay bestie, welcome to al_get_audio_stream_position_secs(3) from the Allegro 5 API β€” yes, it’s giving Library Functions Manual main character energy πŸ’–βœ¨

🌸 NAME 🌸

al_get_audio_stream_position_secs β€” the Allegro 5 API function that gives you the position of the stream in seconds, no cap πŸ’…

✨ SYNOPSIS ✨

#include <allegro5/allegro_audio.h>

double al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM *stream)

πŸ’… DESCRIPTION πŸ’…

okay so this literally returns the position of the stream in seconds πŸŽ€

But bestie, hear me: 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 vibe check β€” those four, periodt πŸ¦‹πŸ”₯

fr fr, that β€œcurrently” and that β€œonly” are doing important work, so don’t sleep on them πŸ‘€

πŸ¦‹ SEE ALSO πŸ¦‹


that’s a wrap, bestie β€” this iconic little page comes from the Allegro reference manual, Library Functions Manual edition πŸŽ€βœ¨πŸ’œ

πŸ“¦ 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