• 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
How can I stop AudioQueue from skipping?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I stop AudioQueue from skipping?


  • Subject: How can I stop AudioQueue from skipping?
  • From: Alex Curylo <email@hidden>
  • Date: Fri, 10 Apr 2009 14:00:34 -0700

So I've got an iPhone app with AudioQueue-based playback of a custom file format on one thread, and NSURLConnection-based downloading of new files in this custom format possibly happening on a different thread. Plus the main UI thread. And I can't seem to stop the audio from skipping.

I call [NSThread setThreadPriority] to give the playback thread 1.0 priority, and the download thread 0.1 priority, leaving the main thread at whatever main threads are at. I've mucked around with various number/size AudioQueue buffer arrangements, and am currently at 16x32k. Which takes a noticeable amount of time to prime, and is still skipping eventually when downloads are going on.

Is there anything else I could be doing to make this suck less?

--
Alex Curylo -- email@hidden -- http://www.alexcurylo.com/

Programming is like sex...
One mistake and you support it the rest of your life.





_______________________________________________
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


  • Prev by Date: Re: RemoteIO unit at beginning and end of an AUGraph
  • Next by Date: Re: Capturing AU output to file
  • Previous by thread: Re: Capturing AU output to file
  • Next by thread: Rez: syserror 0 when building Audio Unit template
  • Index(es):
    • Date
    • Thread