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