Edit

Share via


AudioFile.Open Method

Definition

Overloads

Open(NSUrl, AudioFilePermission, AudioFileError, AudioFileType)

Opens an audio file.

Open(CFUrl, AudioFilePermission, AudioFileError, AudioFileType)

Opens an audio file.

Open(String, AudioFilePermission, AudioFileError, AudioFileType)

Opens an audio file.

Open(NSUrl, AudioFilePermission, AudioFileType)

Opens an audio file.

Open(CFUrl, AudioFilePermission, AudioFileType)

Opens an audio file.

Open(String, AudioFilePermission, AudioFileType)

Opens an audio file.

Open(NSUrl, AudioFilePermission, AudioFileError, AudioFileType)

Opens an audio file.

public static AudioToolbox.AudioFile Open (Foundation.NSUrl url, AudioToolbox.AudioFilePermission permissions, out AudioToolbox.AudioFileError error, AudioToolbox.AudioFileType fileTypeHint = (AudioToolbox.AudioFileType) 0);
static member Open : Foundation.NSUrl * AudioToolbox.AudioFilePermission *  * AudioToolbox.AudioFileType -> AudioToolbox.AudioFile

Parameters

url
NSUrl
permissions
AudioFilePermission
fileTypeHint
AudioFileType

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.

Applies to

Open(CFUrl, AudioFilePermission, AudioFileError, AudioFileType)

Opens an audio file.

public static AudioToolbox.AudioFile Open (CoreFoundation.CFUrl url, AudioToolbox.AudioFilePermission permissions, out AudioToolbox.AudioFileError error, AudioToolbox.AudioFileType fileTypeHint = (AudioToolbox.AudioFileType) 0);
static member Open : CoreFoundation.CFUrl * AudioToolbox.AudioFilePermission *  * AudioToolbox.AudioFileType -> AudioToolbox.AudioFile

Parameters

url
CFUrl
permissions
AudioFilePermission
fileTypeHint
AudioFileType

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.

Applies to

Open(String, AudioFilePermission, AudioFileError, AudioFileType)

Opens an audio file.

public static AudioToolbox.AudioFile Open (string url, AudioToolbox.AudioFilePermission permissions, out AudioToolbox.AudioFileError error, AudioToolbox.AudioFileType fileTypeHint = (AudioToolbox.AudioFileType) 0);
static member Open : string * AudioToolbox.AudioFilePermission *  * AudioToolbox.AudioFileType -> AudioToolbox.AudioFile

Parameters

url
String
permissions
AudioFilePermission
fileTypeHint
AudioFileType

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.

Applies to

Open(NSUrl, AudioFilePermission, AudioFileType)

Opens an audio file.

public static AudioToolbox.AudioFile Open (Foundation.NSUrl url, AudioToolbox.AudioFilePermission permissions, AudioToolbox.AudioFileType fileTypeHint = (AudioToolbox.AudioFileType) 0);
static member Open : Foundation.NSUrl * AudioToolbox.AudioFilePermission * AudioToolbox.AudioFileType -> AudioToolbox.AudioFile

Parameters

url
NSUrl
permissions
AudioFilePermission
fileTypeHint
AudioFileType

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.

Applies to

Open(CFUrl, AudioFilePermission, AudioFileType)

Opens an audio file.

public static AudioToolbox.AudioFile Open (CoreFoundation.CFUrl url, AudioToolbox.AudioFilePermission permissions, AudioToolbox.AudioFileType fileTypeHint = (AudioToolbox.AudioFileType) 0);
static member Open : CoreFoundation.CFUrl * AudioToolbox.AudioFilePermission * AudioToolbox.AudioFileType -> AudioToolbox.AudioFile

Parameters

url
CFUrl

The url to a local file name.

permissions
AudioFilePermission

The permissions used for the file (reading, writing or both).

fileTypeHint
AudioFileType

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.

Applies to

Open(String, AudioFilePermission, AudioFileType)

Opens an audio file.

public static AudioToolbox.AudioFile Open (string url, AudioToolbox.AudioFilePermission permissions, AudioToolbox.AudioFileType fileTypeHint = (AudioToolbox.AudioFileType) 0);
static member Open : string * AudioToolbox.AudioFilePermission * AudioToolbox.AudioFileType -> AudioToolbox.AudioFile

Parameters

url
String
permissions
AudioFilePermission
fileTypeHint
AudioFileType

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.

Applies to