Reputation: 6227
I have a conundrum:
I need to find a way to capture the raw audio data that is being piped to the Built-in Output on Mac OS X. Core Audio, HAL, etc.
I can "listen" in on the Built-in Output and the mic, but neither of these appear to offer the correct data stream - the exact stream (all combined data from all input sources) that goes to the speakers/built-in output.
Any advice is welcomed with appreciation.
Upvotes: 10
Views: 5470
Reputation: 6566
maybe you should have a look at the Jack source code...
http://sourceforge.net/projects/jackosx
Upvotes: 2
Reputation: 34243
You need will need your app to install a system extension. Soundflower is an open-source implementation of such an extension.
Upvotes: 0
Reputation: 4882
Do you need to access to that stream from your program, or do you just want to rip audio from it? In the second case, a quick Google search turned up http://www.ambrosiasw.com/utilities/wiretap/ and http://www.rogueamoeba.com/audiohijackpro/. None of those are open-source or free though.
Edit -- whoops, you want to access to programmatically, that answers my own question, sorry. I think I'll keep my answer here in case some folks stumbles upon this page wanting to record audio non-programmatically.
Upvotes: 0