Re: kAudioUnitType_FormatConverter and locking the iPhone
Re: kAudioUnitType_FormatConverter and locking the iPhone
- Subject: Re: kAudioUnitType_FormatConverter and locking the iPhone
- From: Evan Olcott <email@hidden>
- Date: Fri, 24 Apr 2009 10:07:44 -0500
On Apr 24, 2009, at 9:38 AM, Doug Wyatt wrote: Wait ... Come to think of it, one thing that changes when the screen is locked is that your I/O cycle duration can be increased. AUConverter would start getting pulled for more samples at a time. If its max-frames-per-render-cycle is exceeded, its AudioUnitRender would start returning an error to its caller and not write anything into the output buffer...
Wow, this is a good one!
I did a log trace and I noticed that the inNumberFrames changed from 1024 to 4096 when the phone was locked.
I set the kAudioUnitProperty_MaximumFramesPerSlice to 4096 on the AUConverter during the setup and it seems to have fixed the issue.
Thanks, Doug!
Ev Technical Knowledge Officer Head Programmer/Designer Audiofile Engineering
|
_______________________________________________
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