mosaicode/extensions/javascript/blocks/webaudio/Sound/Speaker.json

27 lines
625 B
JSON

{
"source": "JSON",
"data": "BLOCK",
"version": "0.0.1",
"type": "javascript.speaker",
"language": "javascript",
"extension": "webaudio",
"help": "Sound output",
"label": "Speaker",
"color": "#D3C124",
"group": "Sound",
"codes": [
{
"name": "declaration",
"code": "\n// block_$id$ = $label$\nvar $port[sound]$ = context.destination;\n"
}
],
"properties": [],
"ports": [
{
"conn_type": "input",
"name": "sound",
"label": "Sound",
"type": "javascript.sound"
}
]
}