AudioToolbox.AudioFile.Open Method
Opens an audio file for reading.

Syntax

public static AudioFile Open (CoreFoundation.CFUrl url, AudioFilePermission permissions, AudioFileType fileTypeHint)

Parameters

url
The url to a local file name.
permissions
The permissions used for the file (reading, writing or both).
fileTypeHint
A hint for the decoder.

Returns

An instance of AudioFile on success, null on failure.

Remarks

The hint is necessary as sometimes it is not possible to determine the file type merely based on the contents of the file.

Requirements

Namespace: AudioToolbox
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0