Re: How to stop an Audio Unit from within the render callback
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