Mark Sibly 7 years ago
parent
commit
cc06e1f746
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bananas/musictest/musictest.monkey2

+ 2 - 2
bananas/musictest/musictest.monkey2

@@ -28,12 +28,12 @@ Class MyWindow Extends Window
 	
 	Method StartMusic()
 		
-		_channel=Audio.PlayMusic( AssetsDir()+"ACDC_-_Back_In_Black-sample.ogg",StartMusic )
+		_channel=Audio.PlayMusic( "asset::ACDC_-_Back_In_Black-sample.ogg",StartMusic )
 	End
 	
 	Method OnRender( canvas:Canvas ) Override
 		
-		If Keyboard.KeyHit( Key.Space ) _channel.Paused=Not _channel.Paused
+		If Keyboard.KeyHit( Key.Space ) or Mouse.ButtonHit( MouseButton.Left ) _channel.Paused=Not _channel.Paused
 		
 		RequestRender()