From 70b31c72731aa160a7bf15f8ba59b2348c0c866d Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Thu, 4 Jan 2018 15:59:44 +0100 Subject: [PATCH] Implemented stopAll method --- v3/src/sound/BaseSoundManager.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/v3/src/sound/BaseSoundManager.js b/v3/src/sound/BaseSoundManager.js index dd00e6d89..8ff668934 100644 --- a/v3/src/sound/BaseSoundManager.js +++ b/v3/src/sound/BaseSoundManager.js @@ -119,7 +119,11 @@ var BaseSoundManager = new Class({ removeByKey: NOOP, pauseAll: NOOP, resumeAll: NOOP, - stopAll: NOOP, + stopAll: function () { + this.sounds.forEach(function (sound) { + sound.stop(); + }); + }, /** * @private */