---
title: loopDuration
framework: audiotoolbox
role: symbol
role_heading: Instance Property
path: audiotoolbox/musictrackloopinfo/loopduration
---

# loopDuration

The point in a music track, measured in beats from the end of the music track, at which to begin playback during looped playback.

## Declaration

```swift
var loopDuration: MusicTimeStamp
```

## Discussion

Discussion During looped playback, a music track plays from (kSequenceTrackProperty_TrackLength – loopDuration) to kSequenceTrackProperty_TrackLength. To explicitly turn off looping, specify a loopDuration of 0.
