---
title: shouldLoop
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/audiobufferresource/shouldloop
---

# shouldLoop

Whether or not this file loops during playback. This should be set for assets that are prepared as seamless loops. A looping resource will play forever until it is explicitly told to stop.

## Declaration

```swift
@MainActor @preconcurrency var shouldLoop: Bool { get }
```

## See Also

### Deprecated

- [init(buffer:inputMode:shouldLoop:)](realitykit/audiobufferresource/init(buffer:inputmode:shouldloop:).md)
