• 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: AudioUnits...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: AudioUnits... (From: Kurt Revis <email@hidden>)

  • Prev by Date: encoding audio
  • Next by Date: Re: encoding audio
  • Previous by thread: Re: AudioUnits...
  • Next by thread: Re: AudioUnits...
  • Index(es):
    • Date
    • Thread