Cache#isSoundReady()

isSoundReady(key) → {boolean}

Check if the given sound is ready for playback.
A sound is considered ready when it has finished decoding and the device is no longer touch locked.

Parameters
Name Type Description
key string

The key of the asset within the cache.

Returns
boolean -

True if the sound is decoded and the device is not touch locked.

Source code: loader/Cache.js (Line 761)
doc_phaser
2017-02-14 10:40:25
Comments
Leave a Comment

Please login to continue.