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

Re: how to unregister interuptListener registered in AudioSessionInitialize() on iPhone


  • Subject: Re: how to unregister interuptListener registered in AudioSessionInitialize() on iPhone
  • From: Christopher Atlan <email@hidden>
  • Date: Tue, 24 Feb 2009 04:22:14 +0100

Hi Andy,

take a look at my blog post "AudioSessionInitialize Workarounds". I describe how you should use interruption listeners with a helper class, but because AVAudioPlayer works without this helper class I looked a little bit deeper and discovered a workaround... (private API).

http://www.restoroot.com/Blog/2008/12/25/audiosessioninitialize-workarounds/

Christopher

Am 24.02.2009 um 03:32 schrieb Andrew E. Davidson:

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

_______________________________________________ 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: William Stewart <email@hidden>
References: 
 >how to unregister interuptListener registered in AudioSessionInitialize() on iPhone (From: "Andrew E. Davidson" <email@hidden>)

  • Prev by Date: Re: How to read a wav in iPhone
  • Next by Date: Re: how to unregister interuptListener registered in AudioSessionInitialize() on iPhone
  • Previous by thread: Re: how to unregister interuptListener registered in AudioSessionInitialize() on iPhone
  • Next by thread: Re: how to unregister interuptListener registered in AudioSessionInitialize() on iPhone
  • Index(es):
    • Date
    • Thread