S
Sakharam Phapale
Private myThread As Thread
Sub cmdStart_Click()
myThread = New Thread(AddressOf PlayAudio)
myThread.Start
End Sub
Sub PlayAudio()
Open wave file
Play wave file
Close wave file
Thread.Abort
End Sub
Sub cmdStop_Click()
Close wave file
Thread.Abort
End Sub
Here when I press STOP button, wave file doesn't get closed, because it is
being used by another process (myThread).
Even I tried it by opening wave file in START button click event. But then
file doesn't played.
Can anyone tell me how to achieve above stuff.
Thanks and Regards
Sakharam Phapale
Sub cmdStart_Click()
myThread = New Thread(AddressOf PlayAudio)
myThread.Start
End Sub
Sub PlayAudio()
Open wave file
Play wave file
Close wave file
Thread.Abort
End Sub
Sub cmdStop_Click()
Close wave file
Thread.Abort
End Sub
Here when I press STOP button, wave file doesn't get closed, because it is
being used by another process (myThread).
Even I tried it by opening wave file in START button click event. But then
file doesn't played.
Can anyone tell me how to achieve above stuff.
Thanks and Regards
Sakharam Phapale