Re: Reading Audio Output
Re: Reading Audio Output
- Subject: Re: Reading Audio Output
- From: Jeff Moore <email@hidden>
- Date: Thu, 19 Dec 2002 20:03:01 -0800
On Thursday, December 19, 2002, at 07:21 PM, jesse wrote:
Hello,
I am just starting out with audio programming on the mac, so
please forgive me if this is an obvious question. I am writing an app
that generates some visual effects based on arbitrary sound input; up
until now I've been using the line-in on the mac, which was fairly
straightforward, but now I'd like to generate the sound with the same
computer on which I'm producing the visual effects. For now I've been
looping the sound-out back to the sound-in with a cable, which does the
trick but is obviously not a great solution for a number of reasons.
So, I am looking for a way to see the post-mix sound data going to the
default (system?) output device; for example, if itunes is playing I
want
to be able to have my visual effects respond to that music. I don't
need
to modify the sound in any way, just read it.
Is there any straight-forward way to do this? If it's not totally
straight-forward, just how far would I have to go to make it work?
The only place where the entire mix of the system is known, is in the
driver in the kernel. The only way to get your hands on it is to do
some driver trickery that allowed you to glom on to another driver to
grab the sample data.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.