using AudioQueues with AudioFileReadBytes

Posted by Santosh on Stack Overflow See other posts from Stack Overflow or by Santosh
Published on 2010-04-29T11:42:28Z Indexed on 2010/04/29 11:47 UTC
Read the original article Hit count: 533

Filed under:

Hey Im trying to work with Audio queues to play a very big mp3 file (arround 23 hours long). when audio queue asks for buffers though callback, im using AudioFileReadBytes() API to read the bytes from audio file and feed the queue. startQueue fails with the error : prime failed

any inputs?????

Also I succeeded playing file using AudioFileReadPackets API instead of AudioFileReadBytes(). But the problem with API is that when I seek (fast forward) by a long interval, say 9 hours (for example fast forward from 32 mins playtime to 9:32 mins) then AudioFileReadPackets() takes a long time (almost 2 mins) to read from new location. any comments would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about iphone-sdk