Enabling audio in emulator

by PAS » Tue, 07 Oct 2008 08:14:17 GMT

Sponsored Links
 Since I found nothing about this while looking, I thought I would
document my findings here.

I had some trouble getting audio to work in the Android emulator.
Eclipse was displaying the following:
    [2008-10-06 16:18:12 - Emulator] emulator: warning: opening audio
output failed

Having a look at the emulator startup options for Android 1.0 SDK,
Release 1:
     http://code.google.com/android/reference/emulator.html #startup-options

...I found some of the Media ones are not correct . Even the self
documentation inside emulator -help-audio is not correct:
    $ emulator -useaudio
    invalid command-line parameter: -useaudio
    $ emulator -help-audio-out
    unknown option: -audio-out
    $ emulator -help-audio-in
    unknown option: -audio-in

I tried the obvious, but got the same error I was getting through
Eclipse (I guess alsa is the default)
    $ emulator -audio alsa
    emulator: warning: opening audio output failed

The only way I got sound working was to run:
    $ emulator -audio oss

Please note that while the emulator is running, you will not be able
to use other audio apps (at least I couldn't).

I hope that helps someone out there. If I have missed something,
please let me know.


Enabling audio in emulator

by GUS » Tue, 07 Oct 2008 09:32:00 GMT

 Nice. But I think your audio doesnt work normaly becouse some other
program on your machine is blocking the audio devices. Fortunatelly,
my audio works fine.

Thx anyway.


Sponsored Links

Enabling audio in emulator

by Selmi » Thu, 30 Oct 2008 07:03:04 GMT

 i had same problem, but when i used lsof to find out what is
accessing /dev/snd i found that nothing does..so i don't know what
could block soundcard
emulator -audio oss fixed problem for me

also i found that if i have rhytmbox  playing and i close emulator it
kills sound and make rhytmbox freeze. i would guess that emulator acts
very aggresive with sound


Other Threads

1. Getting ADT installed in Eclipse requires plug-in org.eclipse.jdt

I use Eclipse for Flex/Air development.  I am trying to get the ADT
installed and I get an error:
"Android Development Tools (0.9.4 v200910220141-17704) requires plug-
in 'org.eclipse.jdt'".

All I can find is that Eclipse needs to have a JDK installed of some
kind, but I have not found a package that Eclipse will accept during a
similar process as installing the ADT.

Can anyone provide a proper url of the JDT needed for Eclipse and any
tricks/steps to get it installed so that the ADT will then install/

Much appreciated.


2. How can I use the google maps api with 2.0 SDK to get Distance and Time?


Im looking for the solution to input source and destination (and maybe
a via address) into my application and then calculate the distance and
the time it takes to travel that route with car.

I found some codesnippets but was told they didnt work after the 1.0
sdk ?

If someone could please point me in the right direction :)


3. Edit a Contact

4. layout for half screen

5. android1.6 source code

6. Emulator not working properly

7. do you want know how i made $8,147.93 in a week