예제 #1
0
 public void PlaySong(F songReference)
 {
     currentSong = SongLibrary.GetSong(songReference);
     if (!IsMuted)
     {
         MediaPlayer.Play(currentSong);
     }
     MediaPlayer.IsRepeating = true;
 }
예제 #2
0
 public SoundManager(SoundEffectLibrary <E> soundEffectLibrary, SongLibrary <F> songLibrary)
 {
     this.SoundEffectLibrary = soundEffectLibrary;
     this.SongLibrary        = songLibrary;
 }