• 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
AVAudioPlayer lags (and not from instantiating it)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AVAudioPlayer lags (and not from instantiating it)


  • Subject: AVAudioPlayer lags (and not from instantiating it)
  • From: James Miller <email@hidden>
  • Date: Sat, 28 Aug 2010 13:45:26 -0600

I have an AVAudioPlayer-based sound that is instantiated early in my code (getting the "big pause" out of the way), but have noticed that when I play my sound (less than a second in length) within my NSTimer loop, all my animation (also controlled in the loop) pauses for a few milliseconds, creating a jerky effect. This doesn't happen in the simulator, but is manifests whenever I test on my iPhone 4.

I tried to relegate my audio playing to a separate NSTimer thread, but it didn't seem to help. I've also searched around for answers but, unfortunately have been buried in too many discussions around pausing audio playback and the lag created from instantiating the object.

Does anyone have any other ideas or advice?

Thanks.


"The world is divided into people who do things and people who get the credit. Try, if you can, to belong to the first class. There's far less competition."

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Core Data and REST
  • Next by Date: CGLayer resolution on iPhone with Retina display
  • Previous by thread: Re: Core Data and REST
  • Next by thread: CGLayer resolution on iPhone with Retina display
  • Index(es):
    • Date
    • Thread