ValveSoftware / Dota-2

Tracker for issues specific to Linux and Mac in the Reborn client. If you have a general issue or non-system-specific feature request please go to dev.dota2.com
472 stars 38 forks source link

dota 2 and AirPods hiccups #1278

Open one2gov opened 7 years ago

one2gov commented 7 years ago

If match is already started and I am starting to use AirPods, sometimes it doesn't gets picked up by a game. Other applications like discord starting to play sound from AirPods, but dota 2 continues to use MacBook speakers. Most of the times it could be solved by going in sound options in game. But if I am actually need to choose AirPods in sound menu, it will freeze screen and disconnect me from the match 9 times out of 10.

MacBook Pro 15' 2015, Mac OS X 10.12.5 (16F73).

gdrewb-valve commented 7 years ago

Dota on Mac uses SDL for audio support, assigning to the SDL dev.

FlaminSarge commented 7 years ago

This seems to happen with any Bluetooth headset and SDL, even those that don't have a microphone. Sound played to the desktop audio device (including Dota) goes to the headphones, but Dota also attempts to play the same sound to the SDL device directly, resulting in very messed up sound or wrong device usage (from what I can tell). This ticket can probably be renamed to "SDL Issues with Bluetooth Headsets on Mac" or something.

FlaminSarge commented 7 years ago

I can also add that seems to only be an issue if the "Input" sound device for the Mac is the Bluetooth headset, rather than the Mac Internal Microphone. It seems any time the microphone on the headset is being used, SDL does some weird things when outputting audio to the headset.

This is occurring in all Source Engine games (e.g. TF2, L4D2).

FlaminSarge commented 7 years ago

@one2gov d'you mind going into your Mac "Sound" options, going to the "Input" tab, and clicking on "Internal Microphone" and seeing if that helps? I wanted to see if it's the same problem.

one2gov commented 7 years ago

@one2gov I launched tutorial and started to use AirPods. Dota didn't saw AirPods. I switched to internal mic, back and forth and sound outputs also.

Lately, I changed my habits and now I am starting to use AirPods before I am launching the game, to bypass all these problems.

monkeyphysics commented 6 years ago

@FlaminSarge Just checked: with the Mac input device set to "internal", this issue doesn't happen indeed.

monkeyphysics commented 6 years ago

After some quick research, the issue may not be related to SDL. More specifically, it seems to be an issue with AirPods and desktop/laptop Apple systems in general. The explanation being that the codec for both output and input is changed to an inferior codec upon activation of the microphone. More information in this thread + post: https://apple.stackexchange.com/a/293066

FlaminSarge commented 6 years ago

^Not only airpods, but yes, two way Bluetooth audio on Macs isn't great.

ffind commented 5 months ago

Got the same issues, and I found out MS Teams has audio driver in the list. After I tried to get rid of MS Teams and all its crap that was installed on mac I was able to fix the issue. Seems Teams took control of driver and was freezing related apps.