• 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
mac os x : Unplugging headphones or changing the sampling rate cause the audio to stop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mac os x : Unplugging headphones or changing the sampling rate cause the audio to stop


  • Subject: mac os x : Unplugging headphones or changing the sampling rate cause the audio to stop
  • From: Stéphane Beauchemin <email@hidden>
  • Date: Thu, 12 Aug 2010 10:53:22 -0400
  • Thread-topic: mac os x : Unplugging headphones or changing the sampling rate cause the audio to stop

Hi Everyone,

 

We use to have working implementation of core audio. Today, I have noticed that unplugging headphone jack cause the audio to stop in our application. The same happens when you change the sampling rate of the default output device when the application is running. The only way of having audio back is to re-lauch the application. I have tested the same with iTunes, and it doesn’t happen.

 

I have carefully set-up my audio graph so there is a converter node at the end of the processing chain to handle the sample rate changes or default audio output change. I suspect that Snow Leopard update might be the cause, since not much changed happened on our side in this area of the code.

 

Also, my inputProc function for the converter node (which feed PCM data from the app) is still hitting breakpoint after the headphone jack has been unplug or sample rate has been changed. I have looked at the buffers in the memory browser and the buffer are not zeros… but I hear nothing.

 

I have tried to set property listener on kAudioDevicePropertyNominalSampleRate or kAudioDevicePropertyJackIsConnected and hopping that calling AuGraphStop and AuGraphStart would solve the problem; however my listener function is never called.

 

Anyone has a suggestion? What’s wrong?

 

Stephane

 

 _______________________________________________
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: mac os x : Unplugging headphones or changing the sampling rate cause the audio to stop
      • From: Jeff Moore <email@hidden>
  • Prev by Date: audioqueue tiing w. audiotimestamps (again)
  • Next by Date: Re: audioqueue tiing w. audiotimestamps (again)
  • Previous by thread: Re: audioqueue tiing w. audiotimestamps (again)
  • Next by thread: Re: mac os x : Unplugging headphones or changing the sampling rate cause the audio to stop
  • Index(es):
    • Date
    • Thread