voice_get_position(3alleg4)

✨ voice_get_position ✨

okay bestie, welcome to the Allegro manual πŸ’– this one's a lil cutie from the 3alleg4 section and it's literally called voice_get_position β€” it does exactly what it says on the tin, no cap. Let's get into it πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro.h>

int voice_get_position(int voice);

like, that's the whole thing. one include, one function, immaculate vibes ✨


πŸ’… DESCRIPTION πŸ’…

so here's the tea πŸ“ β€” voice_get_position hands you back the current position of a voice, measured in sample units.

and if that voice is done and dusted, fully finished playing? it hits you with -1. that's your "she's gone, bestie 😭" signal. that's it, that's the whole function. short, sweet, iconic πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹


and that's the page!! mwah πŸ’‹ this one came to you from Allegro, version 4.4.3 β€” love her, live laugh love, go play some audio βœ¨πŸŽ€πŸ’œ