Function createStreamingSoundAsync
-
createStreamingSoundAsync(
engine: AudioEngine,
source: StreamingSoundSource,
options?: StreamingSoundOptions,
): Promise<StreamingSound>Parameters
- engine: AudioEngine
The audio engine.
- source: StreamingSoundSource
A URL, a list of candidate URLs, or an
HTMLMediaElement. - options: StreamingSoundOptions = {}
Streaming sound options.
Returns Promise<StreamingSound>
A promise that resolves with the ready sound.
- engine: AudioEngine
Creates a streaming, media-element-backed sound routed to the given output bus (or the engine's default main bus). Requires a real-time
AudioContext.