One thing you can do, considering that Soundflower is open source, take a look at how they did it. You cannot copy and paste the GPL code, but you can, of course, study the methods used and create your own solution (we point it in the right direction).
You will not find Apple very useful here. Thus, sound capture can be used for all kinds of vile purposes. I'm not even sure that Core Audio allows you to do this without hacks. In any case, you have a working implementation of what you are trying to accomplish. I would take advantage of this.
source
share