quakejs icon indicating copy to clipboard operation
quakejs copied to clipboard

Some sounds don't play correctly on newer versions of Chrome

Open JustH3LL opened this issue 7 years ago • 5 comments

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

JustH3LL avatar Oct 19 '17 20:10 JustH3LL

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.

Calinou avatar Nov 11 '17 22:11 Calinou

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.

inolen avatar Nov 14 '17 15:11 inolen

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 avatar Nov 14 '17 21:11 Calinou

@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.

jukibom avatar Dec 11 '17 07:12 jukibom

As workaround I have deleted the annoying sounds from the pak0.pk3

digidigital avatar Jun 08 '20 23:06 digidigital