Actually what I meant to say was it only supported 8000hz. make sure you are doing a GetMinBufferSize to figure out the correct parameters. If that call fails then the parameters arent being accepted so try other ones.
On May 21, 1:22 am, "Alger, Lin" <[email protected]> wrote: > I got new SDK today, and test my program on emulator. However, I can't > open Mic on 2.2 emulator, it's work on earlier emulator, my code list > below. > > new AudioRecord(AudioSource.MIC, > 16000, > AudioFormat.CHANNEL_CONFIGURATION_MONO, > AudioFormat.ENCODING_PCM_16BIT, > iMinSize); > > And I got log below. > > ERROR/AudioRecord(878): Could not get audio input for record source 1 > ERROR/AudioRecord-JNI(878): Error creating AudioRecord instance: > initialization check failed. > ERROR/AudioRecord-Java(878): [ android.media.AudioRecord ] Error code > -20 when initializing native AudioRecord object. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

