al_get_voice_position(3alleg5)

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

✨ 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 πŸ‘‘


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