Upravit

Sdílet prostřednictvím


SystemSound.FromFile Method

Definition

Overloads

FromFile(String)

An array of packet descriptions that describe the contents of the buffer.

FromFile(NSUrl)

Creates a system sound from a file.

FromFile(String)

An array of packet descriptions that describe the contents of the buffer.

public static AudioToolbox.SystemSound FromFile (string filename);
static member FromFile : string -> AudioToolbox.SystemSound

Parameters

filename
String

The file that contains the audio.

Returns

A SystemSound instance or null on error.

Remarks

SystemSounds are limited to 30 seconds or less.

Applies to

FromFile(NSUrl)

Creates a system sound from a file.

public static AudioToolbox.SystemSound FromFile (Foundation.NSUrl fileUrl);
static member FromFile : Foundation.NSUrl -> AudioToolbox.SystemSound

Parameters

fileUrl
NSUrl

A SystemSound instance, or null on error.

Returns

The system sound object, or null on error.

Remarks

SystemSounds are limited to 30 seconds or less.

Applies to