How to wait for a sample to stop playing in Allegro 5
Thread #614284. Printed from Allegro.cc
Example in paperclip, run from console with name of audio file as parameter for command line.
Forgot the percent sign in line 101
printf("sample position %d, sample length %d, sample is %4.2f%% complete\n",sample_position,sample_length,spos);