Click to See Complete Forum and Search --> : Detect Wav finished Playing


eng70640
April 2nd, 2001, 12:21 PM
I am using sndPlaySound to play back wav file. Is there a way to detect if the playback using this API function has finished?

Craig Gemmill
April 3rd, 2001, 12:22 AM
Declaration:

Public Declare Function sndPlaySound Lib "winmm" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

Use:

sndPlaySound "Filename.wav", 2

That wont continue until the wav has finished playing.