davkean / audio-switcher

App that lets you easily switch Windows audio devices
MIT License
382 stars 53 forks source link

"Automatically switch to plugged in device" doesn't work for devices with a built-in headphones jack #6

Open davkean opened 9 years ago

davkean commented 9 years ago

Certain notebooks, in particular the one @terrajobst has, does not automatically switch to the speakers when he up unplugs his headphones. This is probably because it's always seen as "Active" regardless of whether the headphones are connected.

Probably need to look at the jack state change of the individual audio devices and respect that.

davkean commented 9 years ago

Looks like Realtek is merging both endpoints into a single endpoint, we might be out of luck here: https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/0bea3003-5a31-42f5-917c-a5b577dcda1f/i-am-not-getting-ondeviceremoved-or-ondeviceadded-callbacks-when-addremove-an-audioendpoint?forum=windowspro-audiodevelopment.

Although, I'd still like to see if we can use the Jack state to see if that changes.