37

I ran my application and I can't get the sound working on the Android Emulator. I checked and enabled the audio playback boolean in the Eclipse AVD Manager. I also went into the sound options in the Android Emulator and put them up (no sound while putting them up). I checked the box that says all selections will make a noise(still no sound).

My application uses the MediaPlayer class and I am running win7 x64 if that has anything to do with it.

Help is appreciated.

Vivek Kalkur
  • 2,200
  • 2
  • 21
  • 40
user947659
  • 2,485
  • 4
  • 21
  • 24
  • A possible solution: https://stackoverflow.com/a/63433663/5765771 – Al Mamun Aug 16 '20 at 06:05
  • For me this worked https://stackoverflow.com/a/68392331/3636099 change hw.audioInput=yes hw.audioOutput=yes – Murali Mar 27 '22 at 11:09
  • Really dumb but for some reason focusing on the Android Virtual Devices window worked for me (and nearly gave me a heart attack) – Ryker Apr 27 '22 at 21:47

8 Answers8

37

For OS X the Android Emulator uses the settings for "Sound Effects" so this is what I had to do to fix my issue:

  1. Click the Apple icon in the top left, then click on System Preferences
  2. Click on Sound
  3. Click on "Sound Effects"
  4. Set "Play sound effects through" to "Selected sound output device"
  5. Set the Alert volume almost at max.

Somehow this had changed to use my monitors instead.

Torre Lasley
  • 7,243
  • 3
  • 24
  • 12
16

In Ubuntu 16.04, start the emulator and go to the Ubuntu → System Settings → Sound → Applications. Uncheck the mute checkbox and set the cursor at the middle position.

Serge Stroobandt
  • 28,495
  • 9
  • 107
  • 102
doruMarinau
  • 171
  • 1
  • 3
  • I am on OpenSUSE Tumbleweed and I didn't have qemu-system-x86_64 at all. The cause appeared to be in Android Studio - the one installed from Snap was having this problem. When I downloaded it and ran the downloaded version - only then I had qemu... in pulseaudio GUI and had sound from emulator. – pesho hristov Feb 11 '21 at 18:38
8

The solution on Ubuntu 16.04 consists in going to the System Settings → Sound → Application tab.

Then, unmute the Qemu-system … and increase the volume

enter image description here

Serge Stroobandt
  • 28,495
  • 9
  • 107
  • 102
user3821178
  • 353
  • 6
  • 15
  • 3
    Where is this screen in Ubuntu 20? I don't see Qemu system anywhere in the System/Settings/Sound screen. – A.W. Oct 28 '20 at 18:39
  • I am on OpenSUSE Tumbleweed and I didn't have qemu-system-x86_64 at all. The cause appeared to be in Android Studio - the one installed from Snap was having this problem. When I downloaded it and ran the downloaded version - only then I had qemu... in pulseaudio GUI and had sound from emulator. – pesho hristov Feb 11 '21 at 18:34
  • For those who are lost, try to run emulator from cmd, like -> ./emulator -avd my_emulator_name. This Qemu System will show in sound settings. – lubrum Jun 22 '21 at 17:52
  • In my case, everything in Application was unmuted already. I solved it by selecting the correct output in the tab "Output" instead. – ph_0 Apr 15 '23 at 10:05
2

On Debian 8 , you should open qemu-system after android emulator launching enter image description here

cui cui
  • 71
  • 5
  • I am on OpenSUSE Tumbleweed and I didn't have qemu-system-x86_64 at all. The cause appeared to be in Android Studio - the one installed from Snap was having this problem. When I downloaded it and ran the downloaded version - only then I had qemu... in pulseaudio GUI and had sound from emulator. – pesho hristov Feb 11 '21 at 18:31
1

my apps working fine with sound suddenly it stop sound because of some code changed. all other app sound also stopped then i did below step now it is fine

try below

go to android emulator 1.close the program 2.setting -> sound -->volumes ->increase sound value in music video games and other media it will work

sujan
  • 11
  • 1
1

On On Kubuntu , you should increase the playback stream of qemu-system after android emulator launching enter image description here

0

I had the same problem : in a terminal, type pavucontrol (when emulator is running) and another application using sound, that works, is running too (on pause).

Check if quemu-system and the other application use the same soundcard... In my case, this was the problem :quemu system was using a non working internal soundcard.

-8

Try pressing F6. I had a hard time to figuring this out.

p.s.w.g
  • 146,324
  • 30
  • 291
  • 331
Lune
  • 241
  • 1
  • 3
  • 13