al_get_audio_...layed_samples(3alleg5)

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

al_get_audio_stream_played_samples πŸ’–

okay bestie, gather round, because we're diving into the Allegro 5 API and this one is short but soooo useful. it lives in the 3alleg5 manual section, iykyk. πŸŽ€


✨ NAME ✨

al_get_audio_stream_played_samples β€” Allegro 5 API πŸ¦‹


✨ SYNOPSIS ✨

#include <allegro5/allegro_audio.h>

uint64_t al_get_audio_stream_played_samples(const ALLEGRO_AUDIO_STREAM *stream)

like yes, that's the whole vibe. one function, one include, zero drama. πŸ’…


✨ DESCRIPTION ✨

so basically, this lil function hands you back the number of samples consumed by the parent since the audio stream was started. 🎧✨

read that again: the parent is the one doing the consuming, and it's counting from the moment the stream started β€” not from now, not from whenever you felt like asking. periodt.

ngl it's giving "how far along are we actually" energy, and honestly? obsessed. 🫢


✨ SINCE ✨

5.1.8 β€” yeah she's been here a minute, no cap. 🌸


and that's the whole page, bestie!! short and sweet, just how we like it. πŸ’œ

okay so cute lil sign-off time: this whole thing comes from the Allegro reference manual, manual page version 3alleg5 β€” which is literally the exact same tag you saw in the title up top, because she's consistent like that. πŸ‘‘

go forth and count those samples. you ate. πŸ”₯🌈⭐

πŸ“¦ where this page comes from