I have good experiences with managing inputs and outputs with pavucontrol, which has a nice GUI. You can choose output per application (I have multiple outputs, headset-microphone on jackplug for meetings, a USB device for HiFi headphones, and a USB device that goes into speakers for when I’m home alone and my noise doesn’t bother anyone - pavucontrol covers that).
If you really want to go into the deep end you might try jackaudio.org but that’s a very deep end and I hope you won’t need it, but it’s very powerful.