Function CreateSoundSourceAsync
-
CreateSoundSourceAsync(
name: string,
source: AudioNode,
options?: Partial<ISoundSourceOptions>,
engine?: Nullable<AudioEngineV2>,
): Promise<AbstractSoundSource>Parameters
- name: string
The name of the sound.
- source: AudioNode
The source of the sound.
- options: Partial<ISoundSourceOptions> = {}
The options for the sound source.
- engine: Nullable<AudioEngineV2> = null
The audio engine.
Returns Promise<AbstractSoundSource>
A promise that resolves to the created sound source.
- name: string
Creates a new sound source.