Permalink
Browse files

Fixed AudioBufferList dequeue timestamp bug

  • Loading branch information...
michaeltyson committed Jun 8, 2012
1 parent c4aa1e9 commit 1f32f863e0acdbbb956fc239d0bc9fab08df7acd
Showing with 1 addition and 1 deletion.
  1. +1 −1 TPCircularBuffer+AudioBufferList.c
@@ -191,7 +191,7 @@ void TPCircularBufferDequeueBufferListFrames(TPCircularBuffer *buffer, UInt32 *i
UInt32 bytesToGo = *ioLengthInFrames * audioFormat->mBytesPerFrame;
UInt32 bytesCopied = 0;
while ( bytesToGo > 0 ) {
- AudioBufferList *bufferList = TPCircularBufferNextBufferList(buffer, hasTimestamp ? outTimestamp : NULL);
+ AudioBufferList *bufferList = TPCircularBufferNextBufferList(buffer, !hasTimestamp ? outTimestamp : NULL);
hasTimestamp = true;
if ( !bufferList ) break;

0 comments on commit 1f32f86

Please sign in to comment.