• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Slight audio glitch when pressing the sleep/wake button on iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Tue, 10 Mar 2009 17:35:45 -0700


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.


Thanks

Bill



Rolf


_______________________________________________ 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

_______________________________________________ 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
  • Follow-Ups:
    • Re: Slight audio glitch when pressing the sleep/wake button on iPhone
      • From: "Roni Music" <email@hidden>
References: 
 >Slight audio glitch when pressing the sleep/wake button on iPhone (From: "Roni Music" <email@hidden>)

  • Prev by Date: Re: Recording in AIFF format
  • Next by Date: Re: Synchronize Audio Queue start times in iPhone
  • Previous by thread: Slight audio glitch when pressing the sleep/wake button on iPhone
  • Next by thread: Re: Slight audio glitch when pressing the sleep/wake button on iPhone
  • Index(es):
    • Date
    • Thread