private void OnSoundStateChange(object sender, SoundStateChangedEventArgs e) { ISound sound = sender as ISound; if (sound != null) { if (sound.State == SoundState.Stopped) { _activeSounds.Remove(sound); } } }
protected virtual void OnSoundStateChanged(SoundStateChangedEventArgs e) { SoundStateChanged?.Invoke(this, e); }