private void OpenWaveInDevice() { CloseWaveInDevice(); MmResult result; result = callbackInfo.WaveInOpen(out waveInHandle, DeviceNumber, WaveFormat, callback); MmException.Try(result, "waveInOpen"); CreateBuffers(); }