30 #ifndef TPCircularBuffer_AudioBufferList_h
31 #define TPCircularBuffer_AudioBufferList_h
38 #include <AudioToolbox/AudioToolbox.h>
40 #define kTPCircularBufferCopyAll UINT32_MAX
102 static __inline__ __attribute__((always_inline)) AudioBufferList *TPCircularBufferNextBufferList(
TPCircularBuffer *buffer, AudioTimeStamp *
outTimestamp) {
106 if ( outTimestamp ) {
107 memset(outTimestamp, 0,
sizeof(AudioTimeStamp));
111 if ( outTimestamp ) {
132 static __inline__ __attribute__((always_inline)) void TPCircularBufferConsumeNextBufferList(
TPCircularBuffer *buffer) {
135 if ( !block )
return;
136 TPCircularBufferConsume(buffer, block->
totalLength);