Re: Getting a callback from the output unit in an AUGraph at render time?
Re: Getting a callback from the output unit in an AUGraph at render time?
- Subject: Re: Getting a callback from the output unit in an AUGraph at render time?
- From: Art Gillespie <email@hidden>
- Date: Sat, 02 Feb 2013 10:17:27 -0800
Check out AudioUnitAddRenderNotify -- this lets you tap any Audio Unit's input or output. Add one to your mixer
unit and handle the `kAudioUnitRenderAction_PostRender` action and you should be in business.
On Saturday, February 2, 2013, Daniel Kennett wrote:
Hello!
Sorry if this is a really simple question, but I've been trawling through documentation and am drawing a blank.
I have an AUGraph that takes input from a render callback, then passes the audio through an EQ unit, a mixer (for volume control on iOS), then to the output unit for playback. This all works fine.
I'd like to make a visualizer for my application, so I'd like to get a callback from the output unit when it receives data from the mixer for playback so I can observe the data and do FFTs and so on. In essence, I'd like to intercept the connection between my mixer and output unit and watch the audio going past.
Any pointers on how to achieve this would be greatly appreciated. I'm fine with performing the FFT — it's just getting at the audio!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden