<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/NumAudioFileMarkersToNumBytes(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "c:@F@NumAudioFileMarkersToNumBytes"
  },
  "title" : "NumAudioFileMarkersToNumBytes(_:)"
}
-->

# NumAudioFileMarkersToNumBytes(_:)

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

```
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

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

## Discussion

Use this convenience function when you call the [`AudioFileSetProperty(_:_:_:_:)`](/documentation/AudioToolbox/AudioFileSetProperty(_:_:_:_:)) function with the [`kAudioFilePropertyMarkerList`](/documentation/AudioToolbox/kAudioFilePropertyMarkerList) property to calculate the size of buffer needed to hold a specific number of audio file markers.

## See Also

[`AudioFileSetProperty`](/documentation/AudioToolbox/AudioFileSetProperty(_:_:_:_:))

Sets the value of an audio file property



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)