commit: c00f26e05330c8893c6cc50b5be7aab69b8dedaf
parent b86697d5e0eeae881f88147c76aae08336943737
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 25 Apr 2022 21:23:43 +0200
ibniz.js: Put this.audioOut.noteOn into a condition
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ibniz.js b/ibniz.js
@@ -838,7 +838,7 @@ function Parser(simpleGetPut,useAudio)
this.audioOut = this.audioCtx.createBufferSource();
this.audioOut.buffer=this.aBuffer;
this.audioOut.connect(this.audioCtx.destination);
- this.audioOut.noteOn(0);
+ if(this.audioOut.noteOn) this.audioOut.noteOn(0);
this.audioOut.loop = true;
}
}