I've built an automatic sound device changer for macOS which remembers your input/output selection according to your selection.
It will be useful for musicians, multi input/output sound device users who want to manage input/output for all applications in a centralized way, preferred OS device.
You don't even have to use the app UI!
It's a paid app currently and only available on the App Store.