Mac Audio Capture

I am trying to transfer my splash screen from windows to a Mac, and one of its functions was responsive to the sound output from the system. It was easy to use Direct Sound in the windows, but I can not find a single example of audio capture on a Mac. Is this even possible without writing something like a kernel extension? Using flash is also very simple - it even provides a method computeSpectrumfor getting raw data or even converted fft data.

All programs that I have already found use Soundflower or their own kernel extension. But I do not think that asking to install a separate program or use a kernel extension is a good way.

+5
source share
2 answers

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.

+4
source
-3

All Articles