JSDoc for _playDrumNum

This commit is contained in:
Eric Rosenbaum 2017-11-14 15:00:20 -05:00
parent 75ec76cd57
commit 01e9000c04

View file

@ -452,6 +452,12 @@ class Scratch3MusicBlocks {
} }
} }
/**
* Play a drum sound using its 0-indexed number.
* @param {object} util - utility object provided by the runtime.
* @param {number} drumNum - the number of the drum to play.
* @private
*/
_playDrumNum (util, drumNum) { _playDrumNum (util, drumNum) {
if (util.target.audioPlayer === null) return; if (util.target.audioPlayer === null) return;
if (this._drumConcurrencyCounter > Scratch3MusicBlocks.CONCURRENCY_LIMIT) { if (this._drumConcurrencyCounter > Scratch3MusicBlocks.CONCURRENCY_LIMIT) {