<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwareStream/latency",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "s:9CoreAudio0B14HardwareStreamC7latencySivp"
  },
  "title" : "latency"
}
-->

# latency

An Int containing the number of frames of latency in the stream.

```
var latency: Int { get throws }
```

## Discussion

Note that the owning device may have additional latency so it should be queried as well.
If both the device and the stream say they have latency, then the total latency for the
stream is the device latency summed with the stream latency.

---

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)