Вопрос

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.

Это было полезно?

Решение

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.)

Другие советы

You should also check out the source code for Soundflower:

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top