Function createSoundSourceAsync
-
createSoundSourceAsync(
engine: AudioEngine,
node: AudioNode,
options?: SoundSourceOptions,
): Promise<AudioInputSource>Parameters
- engine: AudioEngine
The audio engine.
- node: AudioNode
The input node to wrap (its output is routed through the graph).
- options: SoundSourceOptions = {}
Source options.
Returns Promise<AudioInputSource>
A promise that resolves with the ready source.
- engine: AudioEngine
Wraps an arbitrary Web Audio node as a sound source, routed to the given output bus (or the engine's default main bus).