Contents

init(_:)

Creates a group resource from an array of audio file resources.

Declaration

@MainActor @preconcurrency init(_ resources: [AudioFileResource]) throws

Discussion

An AudioFileGroupResource provides a single, random element from its collection of AudioFileResource objects each time play() is called on the AudioPlaybackController on which it is prepared.

See Also

Creating a resource