Hello,I am far from knowledgeable on this subject so perhaps that is overkill for your needs and there is a simpler way to achieve your goal, but please take a look at qjackctl. I *suppose* (don't really know) it could could do it and thus be of interest to you:
https://packages.debian.org/trixie/qjackctl