<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioFile/init(forReading:commonFormat:interleaved:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAudioFile(im)initForReading:commonFormat:interleaved:error:"
  },
  "title" : "init(forReading:commonFormat:interleaved:)"
}
-->

# init(forReading:commonFormat:interleaved:)

Opens a file for reading using the specified processing format.

```
init(forReading fileURL: URL, commonFormat format: AVAudioCommonFormat, interleaved: Bool) throws
```

## Parameters

`fileURL`

The file to read.

`format`

The processing format to use when reading from the file.

`interleaved`

The Boolean value that indicates whether to use an interleaved processing format.

## Return Value

A new `AVAudioFile` instance you use for reading.

## Discussion

The processing format refers to the buffers it reads from the file. The system reads the content and converts from the file format to the processing format. The processing format must be at the same sample rate as the actual file contents, and must be linear PCM. The interleaved parameter determines whether the processing buffer is in an interleaved float format.

---

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)