Bluetooth headphone music quality deteriorates when launching iOS simulator
Asked Answered
A

5

346

The situation goes a little something like this:

  1. I am programming Xcode whilst concurrently listening to music on my Bluetooth headphones... you know to block out the world.

  2. Then, I go to launch my app in the iOS simulator and BOOM all of a sudden my crystal clear music becomes garbled and super low quality like it is playing in a bathtub 2 blocks away... in the 1940s.

  3. Note: the quality deterioration does NOT occur if I am playing music on my laptop or cinema display and I launch the sim. It seems to be exclusively a Sim -> Bluetooth issue.

The problem is more than just annoying. Because often after stopping the simulator the crappy bathtub quality music continues. To fix it I have to open sound preferences in OSX and briefly toggle back to my laptop sound and then back to my Bluetooth headphones.

This is a big deal because I launch the simulator 50x a day and have to do this toggle thing every time as well as suffer listening to 40s era mono ham radio quality music.

For your information, the headphones I am using are Plantronics BackBeat Pro and I am up to date on firmware. I am on OSX 10.11.4 and Xcode 7.3... but this problem has persisted through all versions for 2+ years now. Can you save me from the 1940s?

Auguste answered 18/6, 2016 at 21:23 Comment(8)
It sounds like you should file a radar at bugreport.apple.comCrabtree
Dealing with a similar issue, except in my case the sound quality goes to crap (or the music stops outright) when I kill an app on the simulator. I'm getting around it by running all my music through my phone, but wish I didn't have to. Even worse and more strange: if I quit the simulator, my wireless Logitech mouse stops working entirely! I have to unplug and re-plug the USB receiver. Really strange and annoying.Jacklin
I have the same problem with the same headphones - when playing through bluetooth, the minute an app I'm working in is playing sound, the microphone turns on and the sound quality greatly deteriorates. It's easily reproducible with an app that simply uses AudioServicesCreateSystemSoundID() to load a sound file and then calls AudioServicesPlaySystemSound() to play it.Whereat
I have the exact same problem. Also filed a bug report at bugreport.apple.comMoralez
Same issue here, my wireless headphones: Bose Quiet Comfort 35.Tolerable
I was literally about to send my Beats in for repair because of this, glad i'm not the only one with the issue!Babiche
Please mark https://mcmap.net/q/93063/-bluetooth-headphone-music-quality-deteriorates-when-launching-ios-simulator as the solution!Sciatic
What if I use Mac Mini which doesn't have internal microphone option at all?Unwise
T
405

I've managed to fix it, and it actually seems to be a microphone issue. Go to System Preferences -> Sound, select the Input tab and set Internal Microphone as the input (mine was set with my headphones').

system preferences print screen

Crappy sound goes way after that =)

EDIT (May 30 2018):

I've found out an easier way to do the same as above. Instead of opening the System Preferences, you can just go to the Mac OSX toolbar, press Option (alt) + click on the sound icon and then select "Internal Microphone" from the "Input Device" list. Print screen as follows.

input selection from toolbar

Tolerable answered 30/12, 2016 at 20:22 Comment(14)
Fixed it for me too (also with Bose QC35) – wonder why this happens :\Ketti
kind of lame that if you want to use the mic in your bose headphones that the audio quality goes to shitTheomorphic
"Call Ended" she saysTalie
The headphones are switching to their call mode where frequencies are being filtered out. My guess is that when the simulator asks for the microphone to turn on, it switches the headphone mode or somethingScholarship
Thank you!! Now I can listen to music while coding again. If anyone's curious I took a look at the audio codec. Occasionally when the simulator is open it will switch from AAC to SCO, which seems to cause a deterioration in quality. Quitting the simulator will change the codec back to AAC.Crouse
This happens because the android emulator starts tapping the microphone input the second it boots up. And there seems no way to disable this behavior, which creeps me the heck out.... Either way, because the micrphone gets activated, the OS switches a kind of 'phone mode' (a different bluetooth profile). Same thing happens when using Skype, for example.Roanne
My Sony MDR-XB950b1 stats playing the same crappy sound and after a while it just disconnects, this solution worked for me.Pereira
Fixed for my QC35 as well :) Thanks!Miracidium
For people using Mac Mini (no default input), use 'Soundflower' and set the simulator input to a different channel. github.com/mattingalls/SoundflowerFennessy
Fixed same problem with android emulator, Thank you!Erich
This is happening as well in Android. In my case sometimes it had a mono 16khz sound, and some others good audio but almost all the sound balance was on the left ear. This settings page had control over that and I managed to fix itPhycomycete
@Fennessy you should really make your comment an answer of it's own. This is the only thing that reliably worked for me on a mac mini (which has no "internal speakers")Ruhl
Macmini does not show another mic input so I'm doomed.Missie
Awesome. The Option (alt) + click on the sound icon approach is so much easier. Wish Apple fixes in the next Xcode version. Thanks!Grandsire
C
334

If you're using Xcode 9 or higher, you can set a default audio input and output for the simulator. This can be done by launching the simulator from Xcode and navigating to I/O > Audio Input within the menu bar and selecting Internal Microphone. This solution will save your audio preference so you won't have to change it on every launch.

Audio Input Setting

Choochoo answered 19/10, 2017 at 19:0 Comment(12)
Should be accepted answer. Made my qc35 usable againZoster
Thanks for this, works for me, though the option is greyed out on the iPhone 5s and SE simulators oddly enough (maybe more, but iPhone X, 8, 8+ are fine).Hooch
I'm using a Mac mini and there is no Internal Microphone to select.Friulian
@Matt, See #37902261Sciatic
It seems that the Audio options are available only for simulator with iOS 11 and up.Vaishnava
Fixed my Sony WH-1000XM2Heading
wow i was having this problem and this fixed it! was going crazySeligman
@Friulian have you found a solution yet?Nicollenicolson
Shame, Airpods it's the only audio input on my Mac Pro.Disregard
I had the same issue and this approach fixed the problem but this fix didn't work after sometimeChaechaeronea
How can we make this the default setting?Shufu
This does work but I have to do this every time I open the simulator! is there a permanent solution?Insufferable
D
15

On Simulator, Select;

I/O -> Audio Input -> Macbook [Pro]

Done.

Simulator Audio Input

Deery answered 7/5, 2020 at 13:21 Comment(1)
Any solution for Mac Pros which does not have an internal mic so there is nothing to switch to?Poultry
S
5

Seems like years of suffering are finally over, Xcode 12 Beta Release Notes:

Simulator defaults to the internal microphone unless you explicitly choose a different audio source. This avoids triggering phone call mode on Bluetooth headsets which degrades audio quality while listening to music. (59338925, 59803381)

Slush answered 28/6, 2020 at 21:1 Comment(3)
I came here to comment the same thing! I knew the workaround was to change the audio, but I (like others here) reported this back in 2016, can't believe it wasn't addressed until now.Povertystricken
I am using XCode 12 (official release) and the issue still persists with simulator running iOS 14 (if that matters).Kuchen
Also still happens when running the Canvas simulator...Shend
M
0

enter image description hereYou can also switch to Mac's internal mic in System Preferences -> Sound, that's how I usually fix this bug (I have Sony Wh-1000XM3)

Maribelmaribelle answered 16/6, 2021 at 9:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.