Function CreateSoundBufferAsync
-
CreateSoundBufferAsync(
source:
| string
| string[]
| ArrayBuffer
| AudioBuffer
| StaticSoundBuffer,
options?: Partial<IStaticSoundBufferOptions>,
engine?: Nullable<AudioEngineV2>,
): Promise<StaticSoundBuffer>Parameters
- source: string | string[] | ArrayBuffer | AudioBuffer | StaticSoundBuffer
The source of the sound buffer.
- options: Partial<IStaticSoundBufferOptions> = {}
The options for the static sound buffer.
- engine: Nullable<AudioEngineV2> = null
The audio engine.
Returns Promise<StaticSoundBuffer>
A promise that resolves to the created static sound buffer.
- source: string | string[] | ArrayBuffer | AudioBuffer | StaticSoundBuffer
Creates a new static sound buffer.