Re: how to unregister interuptListener registered in AudioSessionInitialize() on iPhone
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