Plays sound from an audio resource on this entity.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
The audio resource to play. You typically use the loadAsync(named:in:inputMode:loadingStrategy:loops:) method to get a resource from a file on disk, or the loadAsync(contentsOf:withName:inputMode:loadingStrategy:loops:) method to retrieve a resource from a URL.
Audio instance that you use to manage audio playback. Use the controller to set playback characteristics like volume and reverb, and then start or stop playback.