Defined unlock method on BaseSoundManager class as both implementations use it

This commit is contained in:
Pavle Goloskokovic 2018-01-17 14:03:04 +01:00
parent 63c402517c
commit 377ab5a4e9

View file

@ -248,6 +248,17 @@ var BaseSoundManager = new Class({
});
this.emit('stopall', this);
},
/**
* Method used internally for unlocking audio playback on devices that
* require user interaction before any sound can be played on a web page.
*
* Read more about how this issue is handled here in [this article](TODO add link).
*
* @override
* @protected
* @method Phaser.Sound.BaseSoundManager#unlock
*/
unlock: NOOP,
/**
* Method used internally for pausing sound manager if
* Phaser.Sound.BaseSoundManager#pauseOnBlur is set to true.