How can I stop AudioQueue from skipping?
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