From 1e00a0c2526cd4db75a3fc0496076354b97e6f59 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Mon, 20 Nov 2017 13:44:44 -0500 Subject: [PATCH] Comment for no-op above concurrency limit --- src/extensions/scratch3_music/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extensions/scratch3_music/index.js b/src/extensions/scratch3_music/index.js index b209e3cde..fc07b6479 100644 --- a/src/extensions/scratch3_music/index.js +++ b/src/extensions/scratch3_music/index.js @@ -458,6 +458,7 @@ class Scratch3MusicBlocks { */ _playDrumNum (util, drumNum) { if (util.target.audioPlayer === null) return; + // If we're playing too many sounds, do not play the drum sound. if (this._drumConcurrencyCounter > Scratch3MusicBlocks.CONCURRENCY_LIMIT) { return; }