• 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: How to safely dispose of audio converter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to safely dispose of audio converter


  • Subject: Re: How to safely dispose of audio converter
  • From: Doug Wyatt <email@hidden>
  • Date: Sat, 10 Dec 2016 10:14:33 -0800

On Dec 10, 2016, at 4:17 , Andreas Falkenhahn <email@hidden> wrote:
I think all I'd need to know is this:

Do the render callback as installed by a call to

   AudioUnitSetProperty(mixerAudioUnit, kAudioUnitProperty_SetRenderCallback, kAudioUnitScope_Input, chan, &callback, sizeof(AURenderCallbackStruct)

and the notification callback as installed by a call to

   AudioUnitAddRenderNotify(mixerAudioUnit, myNotificationCallback, NULL);

run on the same thread or on different threads? To my understanding they
must run on the same thread because the notification callback is run
with kAudioUnitRenderAction_PreRender and kAudioUnitRenderAction_PostRender
flags, respectively, which implies to me that both callbacks are run by the
same thread.

It would be very helpful if you could provide a definitive answer here.

It is expected that the AU call the pre- and post- render notification callbacks from the render thread. The original intent of these callbacks was so that a sequencer could use them to schedule MIDI events using sample offsets into the buffer that is about to be rendered.

Regards,
Doug


 _______________________________________________
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

References: 
 >Re: How to safely dispose of audio converter (From: Doug Wyatt <email@hidden>)
 >Re: How to safely dispose of audio converter (From: Andreas Falkenhahn <email@hidden>)

  • Prev by Date: Re: How to safely dispose of audio converter
  • Next by Date: ExtAudioFileWrite: insz - invalid number of frames? (iOS)
  • Previous by thread: Re: How to safely dispose of audio converter
  • Next by thread: ExtAudioFileWrite: insz - invalid number of frames? (iOS)
  • Index(es):
    • Date
    • Thread