/// <summary> /// Stops the recorder. /// </summary> public static void StopRecorder() { StopPlayer(); if (m_Recorder != null) try { m_Recorder.Dispose(); } finally { m_Recorder = null; } m_Fifo.Flush(); }
/// <summary> /// Starts the recorder. /// </summary> public static void StartRecorder() { StopRecorder(); try { m_Recorder = new WaveInRecorder(-1, fmt, bufferSize, 3, new BufferDoneEventHandler(DataArrived)); } catch { StopRecorder(); throw; } }