al_get_audio_..._position_secs(3alleg5)

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

πŸ’– al_get_audio_stream_position_secs β€” the Allegro 5 API glow-up πŸ’–

okay bestie, welcome to the Allegro 5 API reference manual, 3alleg5 section, and today's main character is a lil function that tells you where you're at in your audio stream. no cap, it's giving "are we there yet" but for sound. 🎧✨


✨ NAME ✨

al_get_audio_stream_position_secs β€” Allegro 5 API 🫢


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_audio.h>

double al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM *stream)

like. she takes one ALLEGRO_AUDIO_STREAM *stream and she hands you back a double. iconic behavior honestly. πŸ‘‘


πŸ’… DESCRIPTION πŸ’…

So what does she do, you ask? She returns the position of the stream, in seconds. that's it, that's the whole vibe. ⏱️✨

BUT β€” and this is the important part, bestie, don't skip this β€” currently this can only be called on streams created with these four:

if your stream came from literally anywhere else, this is not the girl for you, and that's just how it is. πŸ™ˆ


πŸ‘€ SEE ALSO πŸ‘€


lowkey a tiny function but highkey essential. vibe check passed. πŸ¦‹

and that's the tea, babe πŸ“ β€” this was the Allegro reference manual, page al_get_audio_..._position_secs(3alleg5). go get that timestamp, you absolute legend. mwah. πŸ’…πŸŽ€πŸŒˆ

πŸ“¦ where this page comes from