Hi Gabriel,

On 04/12/2010 11:34 PM, Gabriel Simões wrote:
> Well, yes, there´s a clue. At least I´ve had the same error before and
> it was this:
> Everytime you get an error instantiating AudioRecord it doesn´t
> release it´s resources the way it should so you won´t be able to
> request it again unless you restart your phone (or close and reopen
> the emulator). Also, double check to see if you have set up your
> emulator right and if you have set permission for recording audio on
> your manifest.xml.

I only use the RECORD_AUDIO permission, which as previously said works fine on
most versions except Android 2.1. And I did close and reopen the emulator many
times.

The emulator is properly set up AFAICS. With versions prior to 2.1, it didn't
need anything special, audio in and out are enabled by default. I tried with
both oss and alsa backends, and also to explicitly activate audio recording when
creating the AVD. That didn't help.

> I´d like to ask you one thing: have you been able to record a sound
> and listen to it without problems using the emulator (older versions).
> I can create an instance and indeed record but when I try to play it
> the sound is completly messed up, distorted, chopped, ....

Yes, I just tried that, the sound is terrible, quite as you describe, whereas it
works great on real devices.

It looks like to develop audio apps you can't count on the emulator, and need to
buy many phones, or perhaps ask for user feedback at beta stage...

--
  Olivier

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to