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

# NumBytesToNumAudioFileMarkers(_:)

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

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

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

## Discussion

Use this convenience macro when you call the [`AudioFileGetProperty(_:_:_:_:)`](/documentation/AudioToolbox/AudioFileGetProperty(_:_:_:_:)) function with the [`kAudioFilePropertyMarkerList`](/documentation/AudioToolbox/kAudioFilePropertyMarkerList) property to calculate the number of markers that will be returned.

## See Also

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

Gets 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)