/// <summary> /// Removes an AudioEffect from the AudioEffectGroup. /// </summary> /// <param name="audioEffect">The AudioEffect.</param> public void Remove(AudioEffect audioEffect) { if (_audioEffects.Contains(audioEffect)) { _audioEffects.Remove(audioEffect); } }
/// <summary> /// Adds an array of AudioEffect to the AudioEffectGroup. /// </summary> /// <param name="audioEffects">The AudioEffect Array.</param> public void Add(AudioEffect[] audioEffects) { _audioEffects.AddRange(audioEffects); foreach (var audioEffect in audioEffects) { audioEffect.Volume = MasterVolume; } }
/// <summary> /// Adds a new AudioEffect to the AudioEffectGroup. /// </summary> /// <param name="audioEffect">The AudioEffect.</param> public void Add(AudioEffect audioEffect) { _audioEffects.Add(audioEffect); audioEffect.Volume = MasterVolume; }