The StopSong stops the currently-playing song. Since only one song can be playing at a time, this does not take any arguments.
The following code stops the song when the user presses the space bar:
if(InputManager.Keyboard.KeyPushed(Keys.Space)) { AudioManager.StopSong(); }
Last updated 2 years ago
Was this helpful?