From 913f388535188dc2a02c14e560e423e95cf2e8d3 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Wed, 17 Jan 2018 19:10:24 +0100 Subject: [PATCH] Added isLocked method to handle locked actions --- src/sound/html5/HTML5AudioSoundManager.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/sound/html5/HTML5AudioSoundManager.js b/src/sound/html5/HTML5AudioSoundManager.js index d9ab8a148..a6ca6eb28 100644 --- a/src/sound/html5/HTML5AudioSoundManager.js +++ b/src/sound/html5/HTML5AudioSoundManager.js @@ -137,6 +137,17 @@ var HTML5AudioSoundManager = new Class({ BaseSoundManager.prototype.destroy.call(this); this.onBlurPausedSounds.length = 0; this.onBlurPausedSounds = null; + }, + isLocked: function (sound, name, value) { + if (this.locked) { + this.lockedActionsQueue.push({ + sound: sound, + name: name, + value: value + }); + return true; + } + return false; } }); /**