<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioConverter/audioSyncPacketFrequency",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAudioConverter(py)audioSyncPacketFrequency"
  },
  "title" : "audioSyncPacketFrequency"
}
-->

# audioSyncPacketFrequency

```
var audioSyncPacketFrequency: Int { get set }
```

## Discussion

\abstract Number of packets between consecutive sync packets.
\discussion A sync packet is an independently-decodable packet that completely refreshes the decoder without
needing to decode other packets.  When compressing to a format which supports it (such as APAC),
the audio sync packet frequency indicates the distance in packets between two sync packets, with
non-sync packets between.  This is useful to set when saving compressed packets to a file and
efficient random access is desired.  Note: Separating sync packets by at least one second of
encoded audio (e.g. 75 packets) is recommended.

---

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)