---
title: "NumAudioFileMarkersToNumBytes(_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/numaudiofilemarkerstonumbytes(_:)"
---

# NumAudioFileMarkersToNumBytes(_:)

Returns the number of bytes corresponding to a specified number of audio file markers.

## Declaration

```swift
func NumAudioFileMarkersToNumBytes(_ inNumMarkers: Int) -> Int
```

## Parameters

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

## Return Value

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

## Discussion

Discussion 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

### Related Documentation

- [AudioFileSetProperty(_:_:_:_:)](audiotoolbox/audiofilesetproperty(_:_:_:_:).md)

### Parsing Audio File Content

- [NextAudioFileRegion(_:)](audiotoolbox/nextaudiofileregion(_:).md)
- [NumBytesToNumAudioFileMarkers(_:)](audiotoolbox/numbytestonumaudiofilemarkers(_:).md)
