Comment for no-op above concurrency limit

This commit is contained in:
Eric Rosenbaum 2017-11-20 13:44:44 -05:00
parent c3a72560f9
commit 1e00a0c252

View file

@ -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;
}