• 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
AVAudioSessionSilenceSecondaryAudioHintNotification never called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AVAudioSessionSilenceSecondaryAudioHintNotification never called


  • Subject: AVAudioSessionSilenceSecondaryAudioHintNotification never called
  • From: Beinan Li <email@hidden>
  • Date: Thu, 15 Jan 2015 13:38:49 -0500

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: AudioUnit - notify on hosts beat and bar changes
  • Next by Date: Re: AudioUnit - notify on hosts beat and bar changes
  • Previous by thread: Re: AudioUnit - notify on hosts beat and bar changes
  • Next by thread: AudioUnit View Resizing by User Dragging
  • Index(es):
    • Date
    • Thread