Re: AudioUnits...
Re: AudioUnits...
- Subject: Re: AudioUnits...
- From: email@hidden
- Date: Thu, 14 Nov 2002 01:11:58 +0000
Hi Kurt,
Thanks for that info, it is definitely helpful! I was looking for the
possibility of doing the effect in-line without a callback. If there
isn't a way, it looks like I may need to make my code more flexible.
Then again, if the callback is fast enough to get the AU data back
before the next ioproc is called for the output I can probably use what
you suggested...
-- John
I think this is what you're asking for:
Use AudioUnitSetRenderNotification() to give the AU a callback
function. Implement the callback like this:
OSStatus observerCallback(void *inRefCon, AudioUnitRenderActionFlags
inActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber,
AudioBuffer *ioData)
{
if (inActionFlags & kAudioUnitRenderAction_PostRender) {
// Do whatever you like with ioData
}
return noErr;
}
You can do this to an AudioOutputUnit to watch the data go by at the
same time as it is sent to the HAL (and then played through the
hardware). Or, you can use it on any AudioUnit you like.
--
Kurt Revis
_______________________________________________
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.