DOKK / manpages / debian 10 / allegro4-doc / voice_get_position.3alleg4.en
voice_get_position(3alleg4) Allegro manual voice_get_position(3alleg4)

voice_get_position - Returns the current position of a voice. Allegro game programming library.

#include <allegro.h>

int voice_get_position(int voice);

Returns the current position of a voice, in sample units, or -1 if it has finished playing.

voice_set_position(3alleg4)

version 4.4.2 Allegro