kushview / element

Element Audio Plugin Host
https://kushview.net/element/
1.13k stars 99 forks source link

Preference how audio output device is selected #810

Open duenni opened 1 month ago

duenni commented 1 month ago

Is your feature request related to a problem? Please describe. I'm routing my headphones through an EQ with Element and BlackHole. Works great. Now when I unplug the headphone the audio output in Element gets changed to BlackHole, I guess it just jumps to the first entry in the list of audio output devices.

Describe the solution you'd like I'd like to configure a preference how the audio output device is selected. If headphones are plugged in use these else switch to speakers. Ignore BlackHole as output device (only used as input).

Describe alternatives you've considered What would also work is: if no headphones present load another session file.

Additional context What I am trying to achieve in the end: if headphones present route audio through EQ else use speakers and no EQ.

mfisher31 commented 1 month ago

What interface are you using?

duenni commented 1 month ago

Do you mean an external audio interface? I don't use one. I have BlackHole installed (https://github.com/ExistentialAudio/BlackHole) which is an audio loopback driver. I set macOS audio output to BlackHole. In Element: audio input = BlackHole - EQ - audio output = headphones. Now I unplug the headphones and the audio output in Element changes to something else.

mfisher31 commented 1 month ago

Oh ok. Sounds like the OS is reporting that the output device no longer exists and freaks out the backend.