示例#1
0
 public void startRecording()
 {
     if (!_isRecording)
     {
         aRecorder = getRecorder();
         if (aRecorder.getState() == AudioState.STATE_INITIALIZED)
         {
             _isRecording = true;
             aRecorder.startRecording();
             SamplesReaderThread s = new SamplesReaderThread(this, _outStream, getMinBufferSize());
             s.start();
         }
         else
         {
             Console.WriteLine("***AudioRecord not initialized, calling stop for cleaning!");
             stopRecording();
         }
     }
 }