[]
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)
| Type | Name | Description |
|---|---|---|
| string | fileName | The file with the audio. |
| AudioFormat | audioFormat | The audio format. |
| Type | Description |
|---|---|
| SoundObject | The created SoundObject. |