NumBytesToNumAudioFileMarkers

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

Declaration

#define NumBytesToNumAudioFileMarkers (inNumBytes) (
   (inNumBytes) < offsetof (AudioFileMarkerList, mMarkers[0]) ? 0 :
   ((inNumBytes) - offsetof (AudioFileMarkerList, mMarkers[0])) / sizeof (AudioFileMarker)
)

Parameters

inNumBytes

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

Return Value

The number of audio file markers that can be contained in the specified number of bytes.

Overview

Use this convenience macro when you call the AudioFileGetProperty function with the kAudioFilePropertyMarkerList property to calculate the number of markers that will be returned.

See Also

Audio File Macros

NumAudioFileMarkersToNumBytes

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

NextAudioFileRegion

Finds the next audio file region in a region list.