mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
JSDoc for _playDrumNum
This commit is contained in:
parent
75ec76cd57
commit
01e9000c04
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
if (util.target.audioPlayer === null) return;
|
||||
if (this._drumConcurrencyCounter > Scratch3MusicBlocks.CONCURRENCY_LIMIT) {
|
||||
|
|
Loading…
Reference in a new issue