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