• 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 stop an Audio Unit from within the render callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to stop an Audio Unit from within the render callback


  • Subject: Re: How to stop an Audio Unit from within the render callback
  • From: "tahome izwah" <email@hidden>
  • Date: Mon, 12 Jan 2009 17:32:56 +0100

Look at -performSelectorOnMainThread in the docs. The Render callback
is executed on another thread so you have to schedule a call to your
-stop on the main thread.

--th

2009/1/12 Inca Rose <email@hidden>:
> Hi;
>
> How can I signal the RIO AudioUnit that I finish playing data ?
>
> I have a buffer with audio samples, every time my app get called to the
> render callback
> I copy some of the data to the AudioBufferList provided in the callback.
> When I finish to pass all the data, I want to call the stop method of my RIO
> AudioUnit, but
> the problem is that it happen while inside the render callback. Calling stop
> while in the render callback doesn't work.
> How can I do that ?
>
> Thanks
> Inca R_______________________________________________
 _______________________________________________
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

  • Follow-Ups:
    • Re: How to stop an Audio Unit from within the render callback
      • From: Inca Rose <email@hidden>
References: 
 >How to stop an Audio Unit from within the render callback (From: Inca Rose <email@hidden>)

  • Prev by Date: Re: AudioQueueStart result code: -308
  • Next by Date: Re: AudioQueueStart result code: -308
  • Previous by thread: How to stop an Audio Unit from within the render callback
  • Next by thread: Re: How to stop an Audio Unit from within the render callback
  • Index(es):
    • Date
    • Thread