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