From 882289a46269d0f44007a898680de35842df5d49 Mon Sep 17 00:00:00 2001 From: Steve0Greatness Date: Sat, 3 Jan 2026 20:08:20 -0800 Subject: [PATCH] Add currently playing sounds Adds a new block to the sound category. --- blocks_vertical/sound.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/blocks_vertical/sound.js b/blocks_vertical/sound.js index 4142193f75..de0ad9060e 100644 --- a/blocks_vertical/sound.js +++ b/blocks_vertical/sound.js @@ -492,3 +492,19 @@ Blockly.Blocks['sound_getSoundVolume'] = { }); } }; + +Blockly.Blocks['sound_currentlyPlayingSounds'] = { + /** + * pm: Block to report the volume of a sound at the current position. + * @this Blockly.Block + */ + init: function () { + this.jsonInit({ + "message0": "currently playing sounds", + "args0": [], + "category": Blockly.Categories.sound, + "checkboxInFlyout": true, + "extensions": ["colours_sounds", "output_string"] + }); + } +};