title: Android AudioRecord - native init failed
body: <p>I'm trying to use Pure Data in my android app to do some beat detection.  I had the basic functionality working before, but after refactoring my code and expanding the app, libpd is failing to properly create the AudioRecord instance required.  Here are the errors I am getting:</p>
  
  <pre><code>[ android.media.AudioTrack ] getMinBufferSize(): Invalid channel configuration.
  [ android.media.AudioTrack ] getMinBufferSize(): Invalid channel configuration.
  set(): sampleRate 44100, channels 12, frameCount 8832
  Could not get audio input for record source 1
  Error creating AudioRecord instance: initialization check failed.
  [ android.media.AudioRecord ] Error code -20 when initializing native AudioRecord object.
  java.io.IOException: unable to initialize AudioRecord instance for sr: 44100, ch: 2, bufSize: 4416
  set(): sampleRate 44100, channels 16, frameCount 8832
  Could not get audio input for record source 1
  Error creating AudioRecord instance: initialization check failed.
  [ android.media.AudioRecord ] Error code -20 when initializing native AudioRecord object.
  java.io.IOException: unable to initialize AudioRecord instance for sr: 44100, ch: 1, bufSize: 4416
  </code></pre>
  
  <p>Error code -20 means that native initialization failed, so I am at a loss on what to do now.  I do have the RECORD_AUDIO permission in my manifest.  Do you have any suggestions?</p>