Function createSoundBufferAsync
-
createSoundBufferAsync(
engine: AudioEngine,
source: SoundSource,
options?: SoundBufferOptions,
): Promise<SoundBuffer>Parameters
- engine: AudioEngine
The audio engine.
- source: SoundSource
An
AudioBuffer,ArrayBuffer, URL, or URL list. - options: SoundBufferOptions = {}
Decode options.
Returns Promise<SoundBuffer>
A promise that resolves with the decoded buffer.
- engine: AudioEngine
Loads and decodes audio into a reusable SoundBuffer.