add sounds directory to path

This commit is contained in:
UnknownShadow200 2021-08-20 16:58:40 +10:00
parent 2eb23fe88a
commit 9f606fca69

View File

@ -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() {