From b24d7c6fcaf29a80e87d063113acefa38e99e4d6 Mon Sep 17 00:00:00 2001 From: jsemu Date: Sat, 27 Apr 2019 03:18:22 -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 41064b6..ae64a54 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 == "object") ? userEventLatch : null; + this.userEventLatch = (typeof userEventLach == "function") ? userEventLatch : null; this.initializeAudio(); } XAudioServer.prototype.MOZWriteAudioNoCallback = function (buffer, upTo) {