Esempio n. 1
0
    public void PlaySongIfNoneAreCurrentlyPlaying(Songs.SongName songName)
    {
        PLAYBACK_STATE playbackState = GetAndUpdatePlaybackStateOfSong();

        if (playbackState == PLAYBACK_STATE.STOPPED)
        {
            SetSong(songName);
            SetPlaybackState(FMODSongState.Play);
        }
    }
 public void SetSong(Songs.SongName songName)
 {
     this.songName = songName;
 }
 private string BuildEventString(Songs.SongName songName)
 {
     return(string.Format("event:/{0}/{1}", MusicFolderInFMODBank, songName.ToString()));
 }