NumAudioFileMarkersToNumBytes

A macro that returns the number of bytes corresponding to a specified number of audio file markers.

Declaration

#define NumAudioFileMarkersToNumBytes(inNumMarkers) (
   offsetof (AudioFileMarkerList, mMarkers) + (inNumMarkers) * sizeof(AudioFileMarker)
)

Parameters

inNumMarkers

The number of audio file markers for which you wish to know the equivalent number of bytes.

Return Value

The number of bytes required to contain the specified number of audio file markers.

Overview

Use this convenience function when you call the AudioFileSetProperty function with the kAudioFilePropertyMarkerList property to calculate the size of buffer needed to hold a specific number of audio file markers.

See Also

Audio File Macros

NumBytesToNumAudioFileMarkers

A macro that returns the number of audio file markers represented by a specified number of bytes.

NextAudioFileRegion

Finds the next audio file region in a region list.