Re: Proper way for stopping a graph from it's renderInput callback
Re: Proper way for stopping a graph from it's renderInput callback
- Subject: Re: Proper way for stopping a graph from it's renderInput callback
- From: William Stewart <email@hidden>
- Date: Mon, 12 Jul 2010 12:46:27 -0700
On Jul 11, 2010, at 11:17 PM, Guy Shaviv wrote:
> I'm wondering what is the proper way to stop a graph from playing from within it's render input or render notification callbacks. I tried calling AUGraphStop from my render input callback but that seems to have no effect.
Do you mean that it doesn't stop the graph?
> What I'm doing now is filling the buffer with silence
you will have to do that for at least the current cycle as the device is "still running" at that point.
> and scheduling a call to AUGraphStop from the main thread. But it seems like there must be a better way then what I'm doing.
yes, this doesn't seem correct to me
>
> Thanks. _______________________________________________
> 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
_______________________________________________
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