From 9f606fca69597ea6ad97c4c5fd6c74d7119964f7 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 20 Aug 2021 16:58:40 +1000 Subject: [PATCH] add sounds directory to path --- src/interop_web.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interop_web.js b/src/interop_web.js index 45be5fa6c..62e384cec 100644 --- a/src/interop_web.js +++ b/src/interop_web.js @@ -755,7 +755,7 @@ mergeInto(LibraryManager.library, { interop_AudioPlay__deps: ['interop_AudioDownload'], interop_AudioDownload: function(name, nameAddr) { var xhr = new XMLHttpRequest(); - xhr.open('GET', 'static/' + name + '.wav', true); + xhr.open('GET', '/static/sounds/' + name + '.wav', true); xhr.responseType = 'arraybuffer'; xhr.onload = function() {