Exemplo n.º 1
0
 public void PlaySoundEffect(E soundEffectReference)
 {
     if (!IsMuted)
     {
         SoundEffectLibrary.GetSoundEffect(soundEffectReference).Play();
     }
 }
Exemplo n.º 2
0
        public SoundEffectInstance GetSoundEffectInstance(E soundEffectReference, bool startPlayback = true)
        {
            SoundEffectInstance ret = SoundEffectLibrary.GetSoundEffect(soundEffectReference).CreateInstance();

            if (startPlayback && !IsMuted)
            {
                ret.Play();
            }
            return(ret);
        }
Exemplo n.º 3
0
 public SoundManager(SoundEffectLibrary <E> soundEffectLibrary, SongLibrary <F> songLibrary)
 {
     this.SoundEffectLibrary = soundEffectLibrary;
     this.SongLibrary        = songLibrary;
 }