private void CloseWaveOut() { if (callbackEvent != null) { callbackEvent.Close(); callbackEvent = null; } lock (waveOutLock) { if (hWaveOut != IntPtr.Zero) { WaveInterop.waveOutClose(hWaveOut); hWaveOut = IntPtr.Zero; } } }
// Token: 0x06000A1E RID: 2590 RVA: 0x0001D6BC File Offset: 0x0001B8BC private void CloseWaveOut() { if (this.callbackEvent != null) { this.callbackEvent.Close(); this.callbackEvent = null; } lock (this.waveOutLock) { if (this.hWaveOut != IntPtr.Zero) { WaveInterop.waveOutClose(this.hWaveOut); this.hWaveOut = IntPtr.Zero; } } }
private void Exit() { if (hWaveOut != IntPtr.Zero) { Stop(); WaveInterop.waveOutClose(hWaveOut); hWaveOut = IntPtr.Zero; } if (buffers != null) { for (int n = 0; n < numBuffers; n++) { buffers[n].Dispose(); } buffers = null; } }
protected void Dispose(bool disposing) { this.Stop(); if (disposing && this.buffers != null) { for (int i = 0; i < this.buffers.Length; i++) { if (this.buffers[i] != null) { this.buffers[i].Dispose(); } } this.buffers = null; } lock (this.waveOutLock) { WaveInterop.waveOutClose(this.hWaveOut); } if (disposing) { this.callbackInfo.Disconnect(); } }