[]
Creates a SoundObject from a specified file.
Note that only a limited set of audio formats is supported, see AudioFormat for details.
public static SoundObject FromFile(string fileName, AudioFormat audioFormat = AudioFormat.Auto)
Public Shared Function FromFile(fileName As String, Optional audioFormat As AudioFormat = AudioFormat.Auto) As SoundObject
Type | Name | Description |
---|---|---|
string | fileName | The file with the audio. |
AudioFormat | audioFormat | The audio format. |
Type | Description |
---|---|
SoundObject | The created SoundObject. |