To test, load the horizontal playground and click "Sprinkles!"
Then right-click and select "Delete X blocks".
You'll hear a grating noise. This is the sound of every block being deleted, the noise plays once for every deleted block.
It only plays the sound once for each block stack - using "Spaghetti!" (despite saying to delete nearly 4000 blocks) only plays the sound a few times.
Great catch. We haven't been using the right-click menus in our prototypes so this went unnoticed.
@thisandagain Where exactly is the delete noise handled? I might be able to fix it.
Even something like "only play one delete noise every 0.1 seconds" could help fix the problem.
@Tymewalk Check out this PR https://github.com/LLK/scratch-blocks/pull/243/files
@thisandagain Sounds good. I'm not sure if that change affects it, but it's good to have an idea of what I'm looking at :smiley:
Recloning the repo now.
EDIT: Apparently that PR was merged a while ago. Still useful though
Hmm... Two things I notice.
First, the sounds get faster as more blocks are deleted.
Second, if you're on a separate tab, you'll only hear 1 sound at a time.
Just addressed this in https://github.com/google/blockly/pull/374 (very small change required). If that pull request gets accepted in upstream blockly the change should flow down on next pull from upstream into scratch blocks.
A rate-limiter has been added to Blockly's develop branch which resolves this issue.
https://github.com/google/blockly/commit/006bb36b89ab3e9cd4aa3b0cf3143e0f8c4b0ae3
Most helpful comment
A rate-limiter has been added to Blockly's develop branch which resolves this issue.
https://github.com/google/blockly/commit/006bb36b89ab3e9cd4aa3b0cf3143e0f8c4b0ae3