Example #1
0
        //-----------------------------------------------------------------------------
        // Playback
        //-----------------------------------------------------------------------------

        // Plays the specified song.
        public static void PlaySong(Song song, bool looped = true)
        {
            if (currentSong != null)
            {
                currentSong.Stop();
            }

            currentSong = song;
            song.Play(looped);
        }