mirror of
https://github.com/photonstorm/phaser
synced 2024-12-17 16:43:30 +00:00
Defined unlock method on BaseSoundManager class as both implementations use it
This commit is contained in:
parent
63c402517c
commit
377ab5a4e9
1 changed files with 11 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue