private void Dispose(bool disposing) { ShutdownFrameQueue(); if (soundRecording != null) { soundRecording.Stop(); soundRecording.Dispose(); soundRecording = null; } }