stormist
stormist

Reputation: 5905

How can I capture the audio from a specific program using Objective C?

Do I have to use CoreAudio for this?

Is there any simple way that anyone knows of? After googling for a couple of hours, I'm more confused than when I started.

Specifically, I am trying to stream the audio from Firefox or chrome over my LAN. Does that make it any easier? (I was trying to find perhaps a built in API supported by either web browser to stream the audio to my obj c program)

Any insights or comments would be appreciated.

Upvotes: 0

Views: 344

Answers (1)

outis
outis

Reputation: 77400

There's no public API to capture audio output. You could integrate the open-source soundflower system extension (which creates virtual input and output devices, with the output devices feeding into input devices) into your application. Note that you'll need to capture all system sound, as browsers generally don't have a configurable preference for what output device they use. For comparison, media applications often let you pick what output device they use, so the output of those can be isolated when capturing.

Upvotes: 1

Related Questions