SoundManager#setDecodedCallback()

setDecodedCallback(files, callback, callbackContext)

This method allows you to give the SoundManager a list of Sound files, or keys, and a callback.
Once all of the Sound files have finished decoding the callback will be invoked.
The amount of time spent decoding depends on the codec used and file size.
If all of the files given have already decoded the callback is triggered immediately.

Parameters
Name Type Description
files string | array

An array containing either Phaser.Sound objects or their key strings as found in the Phaser.Cache.

callback function

The callback which will be invoked once all files have finished decoding.

callbackContext Object

The context in which the callback will run.

Source code: sound/SoundManager.js (Line 443)
doc_phaser
2017-02-14 11:10:08
Comments
Leave a Comment

Please login to continue.