// Plays the specified song. public static void PlaySong(Song song, bool looped, float volume, float pitch = 0.0f, float pan = 0.0f) { if (currentSong != null) { currentSong.Stop(); } currentSong = song; song.Play(looped, volume, pitch, pan); }
//----------------------------------------------------------------------------- // Playback //----------------------------------------------------------------------------- // Plays the specified song. public static void PlaySong(Song song, bool looped = true) { if (currentSong != null) { currentSong.Stop(); } currentSong = song; song.Play(looped); }
/** <summary> Plays the specified song. </summary> */ public static void PlaySong(Song song, bool looped, float volume, float pitch = 0.0f, float pan = 0.0f) { if (currentSong != null) currentSong.Stop(); currentSong = song; song.Play(looped, volume, pitch, pan); }
/** <summary> Plays the specified song. </summary> */ public static void PlaySong(Song song, bool looped = true) { if (currentSong != null) currentSong.Stop(); currentSong = song; song.Play(looped); }