<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/AudioFileGroupResource/init(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22AudioFileGroupResourceCyACSayAA0cdF0CGKcfc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Creates a group resource from an array of audio file resources (backward compatibility).

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

## Parameters

`resources`

The audio file resources for the group

## Discussion

This initializer maintains backward compatibility with existing code that doesn’t specify configuration.

> Throws: An error if the provided array is empty or if the underlying audio assets do not have matching channel layouts.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)