Skip to content

Commit 377ab5a

Browse files
Defined unlock method on BaseSoundManager class as both implementations use it
1 parent 63c4025 commit 377ab5a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/sound/BaseSoundManager.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,17 @@ var BaseSoundManager = new Class({
248248
});
249249
this.emit('stopall', this);
250250
},
251+
/**
252+
* Method used internally for unlocking audio playback on devices that
253+
* require user interaction before any sound can be played on a web page.
254+
*
255+
* Read more about how this issue is handled here in [this article](TODO add link).
256+
*
257+
* @override
258+
* @protected
259+
* @method Phaser.Sound.BaseSoundManager#unlock
260+
*/
261+
unlock: NOOP,
251262
/**
252263
* Method used internally for pausing sound manager if
253264
* Phaser.Sound.BaseSoundManager#pauseOnBlur is set to true.

0 commit comments

Comments
 (0)