Demi
Demi

Reputation: 6227

programmatically recording sound sent to Built-in Output, Mac OS X

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

Answers (3)

kent
kent

Reputation: 6566

maybe you should have a look at the Jack source code...

http://sourceforge.net/projects/jackosx

Upvotes: 2

Thomas Zoechling
Thomas Zoechling

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

Etienne Perot
Etienne Perot

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

Related Questions