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

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