MonoMac.AudioToolbox.AudioFile.OpenRead Method
Opens the specified audio file for reading, frames will be decoded from the native format to raw audio data.

Syntax

public static AudioFile OpenRead (MonoMac.Foundation.NSUrl url, AudioFileType fileTypeHint)

Parameters

url
Url pointing to the file to read.
fileTypeHint
A hint indicating the file format expected, this is necessary for audio files where the operating system can not probe the type by looking at the file signature or file extension (for example AC3. Pass zero to auto detect the format.

Returns

An instance of AudioFile on success, or null on error.

Remarks

Once you have opened the file for reading, you can use the various Read methods to decode the audio packets contained in the file.

Requirements

Namespace: MonoMac.AudioToolbox
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0