voice_get_position(3)
okay bestie, welcome to voice_get_position(3), straight from the Allegro manual π this one is short and sweet, but it still ate.
β¨ NAME β¨
voice_get_position β returns the current position of a voice. part of the Allegro game programming library, no cap.
π¦ SYNOPSIS π¦
#include <allegro.h>
int voice_get_position(int voice);
π DESCRIPTION π
so you hand it a voice, and it gives you back that voice's current position, measured in sample units. that's the whole main character moment.
but if the voice has already finished playing? it returns -1, bestie. that's the vibe check: -1 means done, gone, no more sound from that one π.
πΈ SEE ALSO πΈ
voice_set_position(3)β go peek at this one too, iykyk π«Ά
okay bye bestie! this page is brought to you by Allegro, version 4.4.3 β that's the source/version at the bottom, and since no date is listed there, we're not inventing one. periodt π β¨
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms