al_get_voice_position(3alleg5)
β¨ al_get_voice_position β¨
okay so bestie, welcome to the Allegro 5 API manual page for al_get_voice_position π this one is short and sweet, like a lil snack, but it's lowkey important so stay with me π«Ά
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_audio.h>
unsigned int al_get_voice_position(const ALLEGRO_VOICE *voice)
like, that's it. that's the whole vibe. one header, one function, no cap π
π DESCRIPTION π
so here's the tea β β when your voice has a non-streaming object attached to it (think: a sample, the classic little audio blob), this function returns the voice's current sample position. iconic. we love a position report β¨
but if there's no non-streaming object attached?? it just returns zero. zero. nada. nothing. it's giving "no thoughts, head empty" π no sample, no position, fr fr.
π¦ heads up: the return type is unsigned int, so you're getting back a whole number, not a float. don't come for me, that's just what it is.
π SEE ALSO π
al_set_voice_position(3alleg5).β the matching setter, because every getter deserves its other half π₯Ήπ
Allegro reference manual π and that's the whole page, bestie!! this lil legend lives in the Allegro reference manual and it's dated from way back β the footer shows the same page title al_get_voice_position(3alleg5) on both sides, so you know it's official πβ¨ mwah, go read the setter version next, you got this π
π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms