Set audio input/ouput device priority

audio

I have a MacBook Pro that is almost always connected to one of two Thunderbolt displays. Sometimes it will also be connected to a USB headset. Every time I disconnect the headset the audio input and output gets set to the build in speakers. However, when the headphones are not plugged in, the display speakers should be used and I have to switch it back. Is there any way to set device priority similar to how you can do it with WiFi networks? It would be awesome if I could set a rule like "Prefer headset over Display over internal", just like I do for WiFi networks.

Sounds like a small problem, but it get's incredibly annoying throughout my day, because I switch between display speakers and headphones a lot.

Best Answer

Posted as answer just to be able to inline pictures...

Not really sure how to test this, as I don't have a Macbook - but what happens if you use Audio Midi Setup & mute the unwanted output? It might then skip it when you unplug the headphones.

enter image description here

…or possibly setting up a Multi-Output device, set to be your default output, with only the used connections checked…

enter image description here