コード例 #1
0
        private void OnSoundStateChange(object sender, SoundStateChangedEventArgs e)
        {
            ISound sound = sender as ISound;

            if (sound != null)
            {
                if (sound.State == SoundState.Stopped)
                {
                    _activeSounds.Remove(sound);
                }
            }
        }
コード例 #2
0
 protected virtual void OnSoundStateChanged(SoundStateChangedEventArgs e)
 {
     SoundStateChanged?.Invoke(this, e);
 }