• 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: Disposing of the AUGraph
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disposing of the AUGraph


  • Subject: Re: Disposing of the AUGraph
  • From: Doug Wyatt <email@hidden>
  • Date: Thu, 13 May 2010 21:27:32 -0700

On May 12, 2010, at 19:04 , Aran Mulholland wrote:

> is this an appropriate way to get rid of the Audio (iPhone)
>
>     AudioSessionSetActive(false);
>     AUGraphStop(graph);
>     AUGraphClose(graph);
>     AUGraphUninitialize(graph);
>
> Are these calls in the right order?

Close stops, initializes and disposes the graph, so Uninitialize would fail (harmlessly).

AudioSessionSetActive(false) will fail if the graph is running; stop or dispose the graph first.

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: 
 >Disposing of the AUGraph (From: Aran Mulholland <email@hidden>)

  • Prev by Date: Re: Polling a Clock
  • Next by Date: Do not want multiple clients mixing my audio
  • Previous by thread: Re: Disposing of the AUGraph
  • Next by thread: Do not want multiple clients mixing my audio
  • Index(es):
    • Date
    • Thread