Skip to content

Commit

Permalink
oto: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Jul 28, 2024
1 parent 2e3e230 commit e30088e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class OtoWorkletProcessor extends AudioWorkletProcessor {
}
registerProcessor('oto-worklet-processor', OtoWorkletProcessor);
`, bufferSizeInBytes/4/channelCount, channelCount)
d.audioContext.Get("audioWorklet").Call("addModule", newScriptURL(script)).Call("then", js.FuncOf(func(this js.Value, arguments []js.Value) any {
w.Call("addModule", newScriptURL(script)).Call("then", js.FuncOf(func(this js.Value, arguments []js.Value) any {
node := js.Global().Get("AudioWorkletNode").New(d.audioContext, "oto-worklet-processor", map[string]any{
"outputChannelCount": []any{channelCount},
})
Expand Down

0 comments on commit e30088e

Please sign in to comment.