Prepares an audio resource for playback.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
The audio resource to prepare. 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.
If you want to start playback right away, use the
play method instead.