SunsetHigh.BGMusic.stopSong C# (CSharp) Method

stopSong() public static method

Stops song and disposes of it (cannot be resumed afterward)
public static stopSong ( ) : void
return void
        public static void stopSong()
        {
            if (wavePlayer != null)
            {
                wavePlayer.Stop();
                if (file != null)
                {
                    file.Dispose();
                    file = null;
                }
                playing = false;
            }
        }