Nov 11, 2010
blog comments powered by Disqus
iOS Audio Queue Tip of the Day™
I just spent a few hours tracking this one down and I figured I would share for anyone who might come across this on Google.
If you are using Audio Queues under iOS to stream audio and you want the queues to continue playing when the screen is locked, your buffer size must be at least 4096 samples. Apple has documented this in QA1606 for Audio Units, but it wasn’t immediately clear that this also applies to Audio Queues.
In retrospect, it should’ve been obvious because Audio Queues are built on top of Audio Units, but Apple never explicitly says anything about Audio Queues and the screen being locked in their documentation.
Hope this helps at least one other person out there. I certainly could’ve used this info a few hours ago.
About
You can subscribe via RSS.