Skip to content

Commit e30088e

Browse files
committed
oto: refactoring
1 parent 2e3e230 commit e30088e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver_js.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class OtoWorkletProcessor extends AudioWorkletProcessor {
105105
}
106106
registerProcessor('oto-worklet-processor', OtoWorkletProcessor);
107107
`, bufferSizeInBytes/4/channelCount, channelCount)
108-
d.audioContext.Get("audioWorklet").Call("addModule", newScriptURL(script)).Call("then", js.FuncOf(func(this js.Value, arguments []js.Value) any {
108+
w.Call("addModule", newScriptURL(script)).Call("then", js.FuncOf(func(this js.Value, arguments []js.Value) any {
109109
node := js.Global().Get("AudioWorkletNode").New(d.audioContext, "oto-worklet-processor", map[string]any{
110110
"outputChannelCount": []any{channelCount},
111111
})

0 commit comments

Comments
 (0)