• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading Audio Output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Reading Audio Output
      • From: Ben Hines <email@hidden>
  • Prev by Date: Reading Audio Output
  • Next by Date: Re: Slightly confusing item in 10.2.3 update notes
  • Previous by thread: Reading Audio Output
  • Next by thread: Re: Reading Audio Output
  • Index(es):
    • Date
    • Thread