Does macOS provide a way to capture the output from a sound card?
Apple's really crappy UI with useless documentation for MacOS's audio is the Audio Midi Setup.  Once you find and open it, select menu Window/Show Audio Devices. 

That in conjunction with some virtual audio routing software like Soundflower may get you want you need.