• 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
how to unregister interuptListener registered in AudioSessionInitialize() on iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to unregister interuptListener registered in AudioSessionInitialize() on iPhone


  • Subject: how to unregister interuptListener registered in AudioSessionInitialize() on iPhone
  • From: "Andrew E. Davidson" <email@hidden>
  • Date: Mon, 23 Feb 2009 18:32:06 -0800

Following the code example in SpeakHere for dealing with interrupts I init my audio session as follows

 

AudioSessionInitialize ( NULL, NULL, interruptionListenerCallback, self );

 

AudioSessionPropertyListener( kAudioSessionProperty_AudioRouteChange, audioRouteChangeListenerCallback, self );

 

I notice that in my code my audioRouteChangeListenerCallback was getting based inClientData, the object was already deallocated. No problem an easy fix was to call AudioSessionRemovePropertyListenerWithUserData()

 

 

I assume I will eventually have the same problem with my interruptionListenerCallback.

Any idea how I can unregister my interruptionListenerCallback?

 

Thanks

 

Andy

 

 

 _______________________________________________
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 unregister interuptListener registered in AudioSessionInitialize() on iPhone
      • From: Christopher Atlan <email@hidden>
    • Re: how to unregister interuptListener registered in AudioSessionInitialize() on iPhone
      • From: William Stewart <email@hidden>
  • Prev by Date: How to read a wav in iPhone
  • Next by Date: Re: Advice on audio file media protection?
  • Previous by thread: Re: How to read a wav in iPhone
  • Next by thread: Re: how to unregister interuptListener registered in AudioSessionInitialize() on iPhone
  • Index(es):
    • Date
    • Thread