Phaser API Documentation

  Version: 
<protected> isLocked(sound, prop, [value])

Description:

Method used internally by Phaser.Sound.HTML5AudioSound class methods and property setters to check if sound manager is locked and then either perform action immediately or queue it to be performed once the sound manager gets unlocked.

Parameters:

name type arguments description
sound Phaser.Sound.HTML5AudioSound

Sound object on which to perform queued action.

prop string

Name of the method to be called or property to be assigned a value to.

value * <optional>

An optional parameter that either holds an array of arguments to be passed to the method call or value to be set to the property.

Returns:
Description:

Whether the sound manager is locked.

Type:
  • boolean
Since: 3.0.0