AudioResourceManager Class
Item Index
Methods
Methods
loadAudioResource
(
-
i_url
-
i_onload
Manages audio resource loading so that only resources are only loaded once, and are stored in buffers that multiple sounds (or polyphonic sounds) can then reference.
Parameters:
-
i_url
StringThe url of the audio resource to be loaded
-
i_onload
Functionfunction to be called when loaded. Will be passed the buffer that the audio resource has been loaded in to.