Avoid sound aliasing
I recently decided to use amplifier for music. I used my old amplifier and after trying FLAC CD found that there is some issue with sound. The problem was that CD uses 44100Hz sampling and pipewire was set by default to 48000Hz. Configuring pipewire to 44100 solved the problem for CD music. But there are sources which uses 48kHz (I think lot of YouTube). Firefox seems to not switch output and this is questionable how to do this as there can be other sources playing. Anyway some algorithm which does not require client change can be considered. Kind of daemon which detects new input source and if it has some threshold and different frequency it changes output. In fact normal workflow is that it can even by configuration silent previous main source (e.g. we play music but want to see video)