What audio encodings are supported on Android Emulator?
<p>I am trying a small program on the emulator</p>

<pre><code>  int frequency=8000;   
    int channelConfiguration = AudioFormat.CHANNEL_CONFIGURATION_MONO;
    int audioEncoding = AudioFormat.ENCODING_PCM_8BIT;
    bufferSize = AudioRecord.getMinBufferSize(frequency,
                        channelConfiguration, audioEncoding);

I keep getting bufferSize -2.
</code></pre>

<p>hwaudioInput:yes is set for the emulator.</p>

<p>For what values should this work? Or do you have any other ideas why this is not working?
Is there way to check why getMinBufferSize fails? What is the exact error message?</p>

<p>Thank you.</p>
