Skip to main content

Home > blockly > WorkspaceAudio > load

WorkspaceAudio.load() method

Load an audio file. Cache it, ready for instantaneous playing.

Signature:

load(filenames: string[], name: string): Promise<void>;

Parameters

ParameterTypeDescription
filenamesstring[]Single-item array containing the URL for the sound file. Any items after the first item are ignored.
namestringName of sound.

Returns:

Promise<void>