4

I have created some code to do a screen capture to mov file using AV Foundation and my next step is to also record what sounds Mac is playing for later adding to the recorded video. I have done some digging and appears I might need to implement some kind of Audio Driver to capture the audio. Any pointers on how to achieve this?

I assume AudioUnit and IOKit will be needed in some manner...

Thanks in advance.

4

2 に答える 2

10

The book OS X and iOS Kernel Programming by Ole Henry Halvorsen and Douglas Clarke has an example that does pretty much exactly this. You can download the example from the book's website, the book itself of course explains how it works.

Disclosure: I was one of the tech reviewers for this book. (I don't receive royalties etc.)

于 2012-08-12T19:57:53.587 に答える
4

You should also check out the source code for Soundflower:

http://code.google.com/p/soundflower/

于 2012-08-18T22:35:58.893 に答える