Re: Getting the PreferedHardwareIOBufferDuration
Re: Getting the PreferedHardwareIOBufferDuration
- Subject: Re: Getting the PreferedHardwareIOBufferDuration
- From: Greg Chapman <email@hidden>
- Date: Wed, 25 Feb 2009 10:30:03 -0800
On Feb 25, 2009, at 4:08 AM, Mark's Studio wrote:
I set kAudioSessionProperty_PreferedHardwareIOBufferDuration to 0.005
and kAudioSessionProperty_CurrentHardwareIOBufferDuration returns
0.005805,
so that is fine
But if the iPod app is started the buffer duration change to 0.023220
and when restarting my audio (i do this by starting an
AVAudioPlayer,so the iPod fades out) the buffer duration stay there,
if i trigger another restart by removing the headset it goes back
to the prefered duration.
This seems like a bug... if you have interrupted the iPod app, you
should get all your hardware settings back (unless something else
weird is going on, like a phone call or something).
Can you write a bug please? If possible, include source code we can
build to reproduce the problem.
Is there anyway i can make sure i get the prefered duration ?
To try to work around the bug, you could try calling
AudioSessionSetActive(true) again before restarting; that might get us
to do the right thing. (I'm just guessing, though... I don't know yet
what the bug is.)
Greg
_______________________________________________
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