Wait for WAV to complete
Bruce Fox

Hi Guys,

I play a .wav file using "play_sample" and need to wait til that has finished playing until I continue.

Is there a flag I can check for, return value, check on the release of the sound card etc?

Regards,
Bruce.

BAF
    int splay = play_sample(yoursample, 255, 127, 1000, 0);
    while(voice_check(splay))
      rest(1);

Bruce Fox

Thankyou BAF.

BAF

You're welcome.

Thread #586049. Printed from Allegro.cc