Friday, May 21, 2010

[android-developers] Re: Open Mic failed on Froyo emulator

Hi, ever since I've know, the emulator only support 8 bit not 16


On May 21, 1:22 am, "Alger, Lin" <addr...@gmail.com> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment