Example #1
0
 /// <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();
 }
Example #2
0
 /// <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;
     }
 }