-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with loading sound- Uncaught DOMException: Failed to read the 'responseText' ... #38
Comments
Did you try using an MP3 instead of a WAV file?
|
Is the error happening when your loading your assets? Does it work properly without loading any sound files? Are you running this from a server or just directly from an index.html file? |
Try this code inside your script and check your console to see if it's showing the files trying to load :)
|
Caught the same error with zero progress.. works fine without sound.. |
I'm assuming it does the same with any sound file, not just this one. So on that assumption, and looking at the error code it looks like that the file is not getting recognized as a string or array when it If you want you can send me a link to the file your using and I can test it on my end. |
@jrfoxw Thanks so much for your help with this! |
Loading sound file with Hexi seems like did not work for me!
Trying to load a sound file in WAV format like this:
let thingsToLoad = ["sounds/music.wav"];
And caught up this error message in console:
"Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'arraybuffer'). at Resource._xhrOnLoad (file:///C:/Users/User/Desktop/Hexi%20-%20Copy/library/hexi.js:6041:65)"
Same with MP3/OGG format. Example 20_sounds does not work..caught with same error.. Is glad to know anyone can help me out with this..?
The text was updated successfully, but these errors were encountered: