diff --git a/exp/audio/internal/audio_js.go b/exp/audio/internal/audio_js.go index 55f467eca..4e7fdbd16 100644 --- a/exp/audio/internal/audio_js.go +++ b/exp/audio/internal/audio_js.go @@ -79,6 +79,11 @@ func initialize() { } func start() { + // Do nothing in node.js. + if js.Global.Get("require") != js.Undefined { + return + } + destination := context.Get("destination") for i, node := range nodes { dummy := dummies[i]