Hi CoreAudio,

I registered the AVAudioSessionSilenceSecondaryAudioHintNotification
callback,
hoping it would get called when my app is foreground and I start playing
music using
the remote-control on the earbud. However the callback never got called.

I also tried from task-switcher or Control Centre but neither worked.

My code in my object class' init: for registering the observer:

self.m_session = [AVAudioSession sharedInstance];
...
...
[notificationCenter addObserver: self
selector: @selector (SilenceSecondaryAudioHintCallback:)
name: AVAudioSessionSilenceSecondaryAudioHintNotification
object: self.m_session];

and the observer method in the same class:

- (void) SilenceSecondaryAudioHintCallback:(NSNotification *)notification {
NSLog(@"SilenceSecondaryAudioHintCallback");
}


I'd appreciate it if anyone can point me to the right direction.

Thanks,
Beinan
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to