Function createSoundAsync
-
createSoundAsync(
engine: AudioEngine,
source: SoundSource,
options?: StaticSoundOptions,
): Promise<StaticSound>Parameters
- engine: AudioEngine
The audio engine.
- source: SoundSource
An
AudioBuffer,ArrayBuffer, URL, URL list, orSoundBuffer. - options: StaticSoundOptions = {}
Sound options.
Returns Promise<StaticSound>
A promise that resolves with the ready sound.
- engine: AudioEngine
Creates a buffer-backed sound, routed to the given output bus (or the engine's default main bus).