quakejs
quakejs copied to clipboard
Some sounds don't play correctly on newer versions of Chrome
I can't describe it much but some sounds don't play correctly and are pure ear rape
I think picking up the Quad was one of them with the said issue
I did inspect element to see what's up, and in the console, Chrome reports QuakeJS is using some deprecated JS calls I believe
I can reproduce this on Firefox Nightly 58 with the sound that plays when a powerup is about to expire – the sound is spammed (and is very loud), even though it should only be played once per second.
This is probably due to the new browser APIs finally being incompatible with what they were when this was originally compiled (2+ years ago).
What really needs to happen at this point is recompiling the project with the latest Emscripten.
What really needs to happen at this point is recompiling the project with the latest Emscripten.
Can you give pointers on what needs to be done for this to happen? Would using WebAssembly in the long term be feasible, too?
Thanks in advance 😄
@Calinou not even in the short term, building with WASM=1
will produce a *.wasm
file instead of *.js
and it should run great in current versions of chrome and firefox.
As workaround I have deleted the annoying sounds from the pak0.pk3