Disable sound in blockly just via inject.js?

669 views
Skip to first unread message

medieninf

unread,
Sep 8, 2014, 2:39:09 AM9/8/14
to blo...@googlegroups.com
Hi,

I dont want that click and delete sounds. So I try do set a comment /* ... */ before and after the line "Blockly.loadAudio" in inject.js
https://code.google.com/p/blockly/source/browse/trunk/core/inject.js#422

Unfortunately it seems that the sound is loaded anyway. What must I do to enable the loading of sounds in blockly?

Regards alex


Neil Fraser

unread,
Sep 8, 2014, 2:50:47 AM9/8/14
to blo...@googlegroups.com

I'll add an option for disabling sound tomorrow.   In the mean time, deleting the sound files from the media directory will definitely do the trick.

Send (awkwardly) from an Android phone.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Neil Fraser

unread,
Sep 8, 2014, 2:02:28 PM9/8/14
to blo...@googlegroups.com
Done in r1770. You can now set 'sound: false' when injecting Blockly
and the click/delete sounds won't be played.
--
Neil Fraser
https://neil.fraser.name

Богдан Багно

unread,
Aug 6, 2015, 6:23:25 PM8/6/15
to Blockly, ro...@neil.fraser.name
Hello!
"sound: false" does not work for me, but "sounds: false" works perfectly.
You should change information at https://developers.google.com/blockly/installation/overview (or change 'sounds' to 'sound').

понедельник, 8 сентября 2014 г., 21:02:28 UTC+3 пользователь Neil Fraser написал:

Neil Fraser

unread,
Aug 6, 2015, 9:17:26 PM8/6/15
to blo...@googlegroups.com
Thanks!  That will be in the next docs update tomorrow.
Reply all
Reply to author
Forward
0 new messages