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
| Parameter | Type | Description |
|---|---|---|
| filenames | string[] | Single-item array containing the URL for the sound file. Any items after the first item are ignored. |
| name | string | Name of sound. |
Returns:
Promise<void>