Captures an application's audio by substituting a 'patch' framework for the normal amework when launching the application Captures system audio via code based off of the open-source SoundFlower. kext that I believe does substantially what you want.įor reference, here is how some popular commercial closed-source options work:
Take a look at the open-source WavTap, which is a simplified fork of the open-source SoundFlower virtual sound card driver.