Re: Slight audio glitch when pressing the sleep/wake button on iPhone
Re: Slight audio glitch when pressing the sleep/wake button on iPhone
- Subject: Re: Slight audio glitch when pressing the sleep/wake button on iPhone
- From: William Stewart <email@hidden>
- Date: Wed, 11 Mar 2009 13:17:55 -0700
If you could file a bug report that would be great (http://bugreporter.apple.com
)
Thanks
Bill
On Mar 11, 2009, at 9:30 AM, Roni Music wrote:
----- Original Message ----- From: "William Stewart" <email@hidden>
To: "Roni Music" <email@hidden>
Cc: <email@hidden>
Sent: Wednesday, March 11, 2009 1:35 AM
Subject: Re: Slight audio glitch when pressing the sleep/wake button
on iPhone
On Mar 10, 2009, at 7:21 AM, Roni Music wrote:
My application is playing audio using kAudioUnitSubType_RemoteIO
similar to the aurioTouch sample and everything works great
except that I'm experiencing a slight audio glitch when pressing
the sleep/wake button on the iPhone. The iPod app on the iPhone
doesn't do this and a couple of other iPhone audio apps
doesn't either so there must be something that I'm missing?
When sleeping, the inNumberFrames in the render callback changes
from 1024 to 4096 if that's related to this problem?
Yes, that can happen, so you should be prepared to provide those
number of samples. The I/O size changes to conserve battery power
when the screen is dimmed
There are plenty of frames in the buffer that is generated by the
feeder thread so it's not related to that.
So, that sounds like you are doing that (I just wanted to make that
point)
This is on an iPhone 3G with OS 2.1.1 and I'm building against SDK
2.2
Any advice?
I think this is a known problem that we've since fixed - can you
try this on 2.2 and see if it reproduces there.
Actually I am on an iPhone with OS 2.2.1 (not 2.1.1) and building
against SDK 2.2
_______________________________________________
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