mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 18:45:23 -04:00
add sounds directory to path
This commit is contained in:
parent
2eb23fe88a
commit
9f606fca69
@ -755,7 +755,7 @@ mergeInto(LibraryManager.library, {
|
|||||||
interop_AudioPlay__deps: ['interop_AudioDownload'],
|
interop_AudioPlay__deps: ['interop_AudioDownload'],
|
||||||
interop_AudioDownload: function(name, nameAddr) {
|
interop_AudioDownload: function(name, nameAddr) {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open('GET', 'static/' + name + '.wav', true);
|
xhr.open('GET', '/static/sounds/' + name + '.wav', true);
|
||||||
xhr.responseType = 'arraybuffer';
|
xhr.responseType = 'arraybuffer';
|
||||||
|
|
||||||
xhr.onload = function() {
|
xhr.onload = function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user