I have app that has a background sound and a sound when someone clicks something. But when they click the something it stops the background sound, which is supposed to loop. How can I play both sounds and leave the background looping? Heres a example of the code:
So the form loads and loads the two wav files then starts playing the background clip in a loop. But when someone clicks on a button that executes the "SpinWheel" routine the WheelTick sound plays but stops the background music. How can I make it keep playing?
-Allan.
VB.NET:
Private WheelTickSound As Media.SoundPlayer = New Media.SoundPlayer("Sounds\tick.wav")
Private BackgroundSound As Media.SoundPlayer = New Media.SoundPlayer("Sounds\BackgroundMusic.wav")
Private Sub GameBoard_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
WheelTickSound.Load()
BackgroundSound.Load()
BackgroundSound.PlayLooping()
End Sub
Private Sub SpinWheel()
WheelTickSound.Play()
End Sub
So the form loads and loads the two wav files then starts playing the background clip in a loop. But when someone clicks on a button that executes the "SpinWheel" routine the WheelTick sound plays but stops the background music. How can I make it keep playing?
-Allan.