Split audio from different applications to different audio outputs
As @IconDaemon says, your two potentials are Rogue Amoeba &amp; Soundflower, paid or free.
Personally I don't trust Soundflower any more, it started to get very crashy around Mavericks &amp; I've not really touched it since.
It was made by Cycling74, then given to Rogue Amoeba to host, but they've long abandoned it so its maintenance has been from whoever posts the most recent re-write.

Rogue Amoeba have 2 apps, one that records, Audio Hijack $49, one that just routes, Loopback $99. I've not really played with Loopback but Audio Hijack already can do most routings.

I made some pretty pictures of possible routings using Audio Hijack on this answer - https://apple.stackexchange.com/a/203009/85275

A third choice is Plogue Bidule - which I just found overkill &amp; never really spent the time to learn it