---
title: latency
framework: Core Audio
role: symbol
role_heading: Instance Property
platforms: [macOS 15.0+]
path: coreaudio/audiohardwarestream/latency
---

# latency

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

## Declaration

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

## Discussion

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.
