Play .wav one by one
Posted on 2001-07-13
How can I play the wave files one by one? Currently, I use sndPlaySound to play wave files:
procedure TForm1.Button1Click(Sender: TObject);
//wavefile is the filename obtained from
//elsewhere of the program, changes continuously
However, if the user click the button again while a wave is still being played, the playing wave will be stopped immediately, and the new wave will be played.
What I want is: to ignore (NOT put the play requests in a queue) the button click until the wave file is finished.