Non-working draft

This commit is contained in:
msqr1
2024-01-24 23:00:29 -08:00
parent 43b54fd1f6
commit 48b54295f3
7 changed files with 61 additions and 54 deletions

View File

@@ -1,23 +0,0 @@
registerProcessor("wasmMemCpy", class extends AudioWorkletProcessor {
constructor(options) {
super(options)
this.retval = true
this.port.onmessage = (ev) => {
switch(ev.cmd) {
case "init":
this.ptr = ev.ptr
this.wasmMem = ev.wasmMem
this.recognizerPort = ev.ports[0]
break
case "deinit":
this.retval = false
break
}
}
}
process(input, output, param) {
const data = input[0][0]
this.recognizerPort.postMessage("done")
return this.retval
}
})