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 π¦
voice_set_position(3alleg4)β the other half of the duo, go read her too π«Ά
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 β¨ππ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms