Function CreateStreamingSoundAsync
-
CreateStreamingSoundAsync(
name: string,
source: string | string[] | HTMLMediaElement,
options?: Partial<IStreamingSoundOptions>,
engine?: Nullable<AudioEngineV2>,
): Promise<StreamingSound>Parameters
- name: string
The name of the sound.
- source: string | string[] | HTMLMediaElement
The source of the sound.
- options: Partial<IStreamingSoundOptions> = {}
The options for the streaming sound.
- engine: Nullable<AudioEngineV2> = null
The audio engine.
Returns Promise<StreamingSound>
A promise that resolves to the created streaming sound.
- name: string
Creates a new streaming sound.