---
title: "NumBytesToNumAudioFileMarkers(_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/numbytestonumaudiofilemarkers(_:)"
---

# NumBytesToNumAudioFileMarkers(_:)

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

## Declaration

```swift
func NumBytesToNumAudioFileMarkers(_ inNumBytes: Int) -> Int
```

## Parameters

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

## Return Value

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

## Discussion

Discussion 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

### Related Documentation

- [AudioFileGetProperty(_:_:_:_:)](audiotoolbox/audiofilegetproperty(_:_:_:_:).md)

### Parsing Audio File Content

- [NextAudioFileRegion(_:)](audiotoolbox/nextaudiofileregion(_:).md)
- [NumAudioFileMarkersToNumBytes(_:)](audiotoolbox/numaudiofilemarkerstonumbytes(_:).md)
