#include <IOKit/audio/IOAudioEngine.h>

IOKit/audio/IOAudioEngine.h Kernel.framework

@header IOAudioEngine
3 macros · 1 struct · 1 typedef

macroIOAUDIOENGINE_DEFAULT_NUM_ERASES_PER_BUFFER

#define IOAUDIOENGINE_DEFAULT_NUM_ERASES_PER_BUFFER 4

structIOAudioEnginePosition

@typedef IOAudioEnginePosition @abstract Represents a position in an audio audio engine. @discussion This position is based on the sample frame within a loop around the sample buffer, and the loop count which starts at 0 when the audio engine begins playback. @field fSampleFrame The sample frame within the buffer - starts at 0. @field fLoopCount The number of times the ring buffer has looped.
size 8, align 4
UInt32fSampleFrame
UInt32fLoopCount

typedefIOAudioEnginePosition

typedef struct IOAudioEnginePosition IOAudioEnginePosition;

macroCMP_IOAUDIOENGINEPOSITION

#define CMP_IOAUDIOENGINEPOSITION(p1, p2) (((p1)->fLoopCount > (p2)->fLoopCount) ? 1 :
        ((p1)->fLoopCount == (p2)->fLoopCount) && ((p1)->fSampleFrame > (p2)->fSampleFrame) ? 1 :
            ((p1)->fLoopCount == (p2)->fLoopCount) && ((p1)->fSampleFrame == (p2)->fSampleFrame) ? 0 : -1)

macroIOAUDIOENGINEPOSITION_IS_ZERO

#define IOAUDIOENGINEPOSITION_IS_ZERO(p1) (((p1)->fLoopCount == 0) && ((p1)->fSampleFrame == 0))