Getting audio from another application directly

I've seen applications such as Dante Via (Audinate) and Loopback (Rogue Amoeba) that can capture audio from an application directly. Which framework is used to achieve this? So far all I've seen is ways to tap in to audio devices with AUs.

Have you realized it? Now I want to implement this feature, but I can't find any clues. I asked Apple TSI, but they responded: Thank you for contacting Apple Developer Technical Support (DTS). We have reviewed your request and have concluded that there is no supported way to achieve the desired functionality given the currently shipping system configurations.

Getting audio from another application directly
 
 
Q