AudioQueueOfflineRender returning empty data

Posted by hyn on Stack Overflow See other posts from Stack Overflow or by hyn
Published on 2009-09-08T09:56:54Z Indexed on 2010/03/19 2:01 UTC
Read the original article Hit count: 400

I'm having problems using AudioQueueOfflineRender to decode AAC data.

When I examine the buffer after the call, it is always filled with empty data. I made sure the input buffer is valid and packet descriptions are provided.

I searched and found that a few others have had the same problem: http://lists.apple.com/archives/Coreaudio-api/2008/Jul/msg00119.html

Also, the inTimestamp argument doesn't make sense to me. Why should the renderer care where in the audio the beginning of the buffer corresponds to? The function throws an error if I pass in NULL, so I pass in the timestamp anyway.

© Stack Overflow or respective owner

Related posts about audioqueueservices

Related posts about core-audio