Наследование: IDisposable
Пример #1
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="effect"></param>
		/// <param name="voice"></param>
        internal SoundEffectInstance( AudioDevice device, SoundEffect effect, SourceVoice voice )
        {
			this.device = device;

            _effect = effect;
            _voice = voice;
        }
Пример #2
0
		/// <summary>
		/// 
		/// </summary>
        public void Dispose()
        {
            if (_voice != null) {
                _voice.DestroyVoice();
                _voice.Dispose();
                _voice = null;
            }
		    _effect = null;
			isDisposed = true;
		}