So, I have a speakers, a usb headset, and HDMI output available to my system and would like to switch which is used by any specific application, or all of them on the fly. So far I am able to use asoundconf to swap which device is used when a new application opens however I haven't found a way to do this by dynamically.I would prefer not to use pulseaudio if possible. Any suggestions?
Dynamic audio sinks and sources with alsa
alsa