Hi,
When a button is clicked the following below happens (Code)
Sub Button1_Click
Number1 = Rnd(432,995)
ImageView1.bitmap=LoadBitmap(File.DirAssets,"m2_000" & Number1 & ".bmp")
MP.Initialize
MP.Load(File.DirAssets,"m2_000" & Number1 & ".wav")
MP.Play
End Sub
Ok this works fine; image is displayed and audio plays. Now if the Button is clicked when the audio is still playing, another image shows and new audio.
The problem is that I dont want multiple audios playing at a time; I want previous audio to stop and the new one starts. I have tried MP.Stop and MP.Release but to no avail (maybe I am putting them in the wrong place)
Pls help