I'll revive this thread, because the problem still persists in 2018.
OS: Sierra 10.12.6
Audio device: high-end bluetooth headphones Sony WH-1000XM2
Trigger: when I start an Android emulator
Additional problem: headphones use the telephony profile (very low audio quality) until I switch it
I didn't see this happening when I was using wired headphones. Since I've been using the bluetooth ones, it happens quite often. Surely every time I start a new emulator for Android development:
- First, the sound quality drops, as the connection switches to the telephony bluetooth profile. I turn off and on bluetooth to fix this. Often I also need to go to the sound settings and play around the input/output devices/tabs. This seems to be the only way to fix it.
- Then the left-right balance is wrong (about 25% left). I go to the Sound settings and adjust the sound balance.
It's a laborious process which does not justify paying all that money for MacBook Pro and high-end bluetooth headphones.
I think that the problem does not lie in the Android emulator. This is just a trigger that breaks the sound in My case. The trigger may be different for other people. It's just a poor bluetooth implementation by Apple.
Info about the emulator: x86, android API 27, emulator 27.0.5, SDK platform tools 27.0.1, SDK tools 26.1.1, HAXM 6.2.1.
[doublepost=1516097209][/doublepost]I found partial fix:
Go to Audio Devices, right click on the built-in microphone and select "use this device for sound input". This stops my MacBook from switching to the telephony profile on my bluetooth headphones.
(Not the Sound settings, but Audio Devices)