title: AudioRecord start() error status -38
body: <p>I'm trying to set up an audio recorder and I keep getting a specific error and I can't figure out why. in my code I have checked what state the audio recorder is in with the Log before and after the startrecording() method.</p>
  
  <pre><code>ar = new AudioRecord(audiosource, sampleRate, channelConfiguration,
                  audioEncoding, buffersizebytes);
  Log.d("info", "ar.getState() before = " + String.valueOf(ar.getState()));
  ar.startRecording();
  Log.d("info", "ar.getState() after = " +String.valueOf(ar.getState()));
  </code></pre>
  
  <p>When I run the app I'm getting these messages in logcat.</p>
  
  <pre><code>D/info﹕ ar.getState() before = 1
  E/AudioRecord﹕ start() status -38
  D/info﹕ ar.getState() after = 1
  </code></pre>
  
  <p>from what I have read in the documentation the state 1 can either correspond to the audio recorder being in the RECORDSTATE_STOPPED or the STATE_INITIALIZED states neither of these two should cause a problem when calling startRecording().<br/>
  <br/>
  The status -38 I believe is a errno.h code for  /* Function not implemented */ is this referring to the startRecording() method or as it states in the error the start() function which is not a method for the AudioRecorder class.<br/>
  <br/>
  I have tried multiple methods to make sure that the release() function was called so I don't think that is the problem here.<br/>
  <br/>
  Any help is greatly appreciated.</p>