From 50e16f3b6eb1159a20a339b94baa59d7cf03484f Mon Sep 17 00:00:00 2001 From: jsemu <> Date: Sat, 4 May 2019 18:21:17 -0400 Subject: [PATCH] Update XAudioServer.js --- user_scripts/XAudioJS/XAudioServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_scripts/XAudioJS/XAudioServer.js b/user_scripts/XAudioJS/XAudioServer.js index 1f83264..fc77480 100644 --- a/user_scripts/XAudioJS/XAudioServer.js +++ b/user_scripts/XAudioJS/XAudioServer.js @@ -13,7 +13,7 @@ function XAudioServer(channels, sampleRate, minBufferSize, maxBufferSize, underR XAudioJSCallbackAPIEventNotificationCallback2 = (typeof postheartbeatCallback == "function") ? postheartbeatCallback : null; XAudioJSVolume = (volume >= 0 && volume <= 1) ? volume : 1; this.failureCallback = (typeof failureCallback == "function") ? failureCallback : function () { throw(new Error("XAudioJS has encountered a fatal error.")); }; - this.userEventLatch = (typeof userEventLach == "function") ? userEventLatch : null; + this.userEventLatch = (typeof userEventLach == "object") ? userEventLatch : null; this.initializeAudio(); } XAudioServer.prototype.MOZWriteAudioNoCallback = function (buffer, upTo) {