route changes/plug-unplug headphones
route changes/plug-unplug headphones
- Subject: route changes/plug-unplug headphones
- From: email@hidden
- Date: Fri, 18 Feb 2011 19:59:56 +0100
dear experts,
I recently ran into problems using headphones with the iPad on which a
self-written synthesis-app is running.
I figured out that most of the times I plug or unplug the headphones,
my audio session buffer size and/or samplerate are being changed which
really messes up my sound. I worked around it by listening to route
changes and if changes occur using setPreferredHardwareSampleRate and
kAudioSessionProperty_PreferredHardwareIOBufferDuration to reset the
initial values.
But this mutes the sound for some time, especially when unplugging.
Is there a better way to do this? Without having such gaps in the sound?
thanks,
Michael
_______________________________________________
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