Opens an existing file with callbacks you provide.
- iOS 2.0+
- macOS 10.3+
- Mac Catalyst 13.0+
- tvOS 9.0+
A pointer to a constant passed to your callbacks. The constant should contain any information you use to manage the state for reading data from the file.
A callback function invoked when the audio file object wants to read data.
A callback function called when the audio file object wants to write data.
A callback function called when the audio file object wants to know the file size.
A callback function called when the audio file object wants to set the file size.
A hint about the type of the designated file. For files with no filename extension and without a type easily or uniquely determined from the data (ADTS,AC3), use this hint to indicate the file type. Otherwise, pass
0for this parameter. The hint is only available in macOS versions 10.3.1 or greater. In versions prior to OS X 10.3.1, opening files such files fails.
On output, a pointer to the newly opened file.
A result code. See Result Codes.