Instance Method

initForReading:error:

Opens a file for reading.

Declaration

- (instancetype)initForReading:(NSURL *)fileURL error:(NSError * _Nullable *)outError;

Parameters

fileURL

The path of the file to read.

outError

Returns, by-reference, a description of the error, if an error occurs.

Return Value

An initialized audio file object for reading.

Discussion

See Also

Creating an Audio File

- initForReading:commonFormat:interleaved:error:

Open a file for reading using a specified processing format.

- initForWriting:settings:commonFormat:interleaved:error:

Open a file for writing using a specified processing format.

- initForWriting:settings:error:

Open a file for writing.