Visual basic sound problem.. Its simple as this. I have the following code:
Private Sub Timer2_Timer()
If WebBrowser1.LocationURL = ("http://www.loconline.com/index.php") Then
mmcIntro.FileName = "zww_title.mid"
mmcIntro.Command = "Open"
mmcIntro.Command = "Play"
mmcBattle.Command = "Stop"
mmcOther.Command = "Stop"
ElseIf WebBrowser1.LocationURL = ("http://www.loconline.com/lobby.php") Then
mmcBattle.FileName = "drf_battle_techno.mid"
mmcBattle.Command = "Open"
mmcBattle.Command = "Play"
mmcOther.Command = "Stop"
mmcIntro.Command = "Stop"
Else
mmcOther.FileName = "sfa_galleonbattle.mid"
mmcOther.Command = "Open"
mmcOther.Command = "Play"
mmcBattle.Command = "Stop"
mmcIntro.Command = "Stop"
End If
End Sub
All is fine when i test it in runtime but when I compile it the sound does not run! I cant figgure out why! The same computer the sound doesnt even load and play as it does countless times in the actual test run from VB6. If anyone can help me and my partners would be extremely greatful ill even put you in the credits! |