---
title: "init(contentsOfURL:soundBankURL:)"
framework: avfaudio
role: symbol
role_heading: Initializer
path: "avfaudio/avmidiplayer/init(contentsofurl:soundbankurl:)"
---

# init(contentsOfURL:soundBankURL:)

## Declaration

```swift
init(contentsOfURL inURL: URL, soundBankURL bankURL: URL?) throws
```
