Re: AUGraph Teardown sequence
Re: AUGraph Teardown sequence
- Subject: Re: AUGraph Teardown sequence
- From: David Hicks <email@hidden>
- Date: Fri, 03 Jan 2014 15:33:10 -0500
I'm surprised no one else has replied. There are surely some people on this list who know the answers to your questions.
My experience with this issue was that the combination of AUGraphClose and DisposeAUGraph did create problems. I believe I read that DisposeAUGraph was redundant, and that the memory deallocation was accomplished in AUGraphClose, so I have the same sequence you give WITHOUT the call to DisposeAUGraph. I have never seen any sample code with a call to DisposeAUGraph in it.
While Instruments may not show memory issues, my recollection is that if you watch the memory counter in Xcode's Debug Navigator, if you're using Xcode, if you don't use AUGraphClose you may well see the memory consumed by your app ramp up as you start and stop and start and stop playback of whatever is accessing your AUGraph.
Now I hope someone else with more expertise will chime in…
Best,
David
On Jan 2, 2014, at 11:34 PM, Sasikumar JP <email@hidden> wrote:
> Hi,
> I have written streaming radio application which uses the AudioUnit for playback. My application is crashing randomly(once in 50 times or so) during AUGraph cleanup process.
>
> I could not see any document from apple what API sequence should be used to cleanup the AUGraph. I have looked at the iOS Audio Unit Sample codes, Most of the code does not use any cleanup method. few code uses only DisposeAUGraph.
>
> Here is the API Sequence i am following to clean up the AUGraph
>
> AUGraphStop() => Check if AUGraphIsRunning before call this method
> AUGraphUninitialize() => Check of AUGraph IsInitialized before call this method
> AUGraphClose()
> DisposeAUGraph()
>
>
> CloseAUGraph is method which handles the AUGraph clean up.
>
> I dont see any memory leak in instruments if i don't call closeAUGraph method.
>
>
> Is AUGraph clean up mandatory?
> What sequence should be called to clean up the AUGraph?
> What condition should be validated before each cleanup API call?
>
> Any help in this regard greatly appreciated.
>
> Thank you
> Sasikumar JP
> ___
_______________________________________________
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