(inputs, outputs, parameters)
| 18 | } |
| 19 | |
| 20 | process(inputs, outputs, parameters) { |
| 21 | const output = outputs[0]; |
| 22 | |
| 23 | this.wasm.exports.process(this.dsp, this.outptr, 128); |
| 24 | for (let c = 0; c < output.length; ++c) { |
| 25 | const outChan = output[c]; |
| 26 | for (let i = 0; i < outChan.length; ++i) { |
| 27 | outChan[i] = this.outbuf[i]; |
| 28 | //outChan[i] = Math.random()*0.1; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | return true; |
| 33 | } |
| 34 | |
| 35 | onmessage(event) { |
| 36 | if (event.type == "move") { |
nothing calls this directly
no outgoing calls
no test coverage detected