loadSound(name: string | null, src: string | ArrayBuffer | AudioBuffer): Asset<SoundData>
Load a sound into asset manager, with name and resource url. Supported formats: mp3, ogg, wav.
param
name- The asset name.
param
src- The resource url.
loadSound("shoot", "/sounds/horse.ogg"); loadSound("shoot", "/sounds/squeeze.mp3"); loadSound("shoot", "/sounds/shoot.wav");
returns
The asset data.
since
v2000.0