private void CloseWaveOut() { callbackEvent.Close(); lock (waveOutLock) { WaveInterop.waveOutClose(hWaveOut); } }