WebQuake icon indicating copy to clipboard operation
WebQuake copied to clipboard

Uncaught TypeError: Failed to execute 'createBuffer' on 'AudioContext': 3 arguments required, but only 2 present.

Open kzahel opened this issue 11 years ago • 3 comments

Got this error when loading the quaddicted page, and also when cloning from github and running from local web server.

https://github.com/SiPlus/WebQuake/blob/master/Client/WebQuake/S.js#L818

Chrome Version 36.0.1985.143 Platform 5841.98.0 (Official Build) stable-channel link

kzahel avatar Sep 04 '14 10:09 kzahel

Same here.

FindFile: id1/sound/ambience/water1.wav Sys.js:25 Uncaught TypeError: Failed to execute 'createBuffer' on 'AudioContext': 3 arguments required, but only 2 present.

Chromium 37.0.2062.94 (Developer Build 290621) OS Linux Blink 537.36 (@180557) JavaScript V8 3.27.34.14

SpiritQuaddicted avatar Sep 04 '14 11:09 SpiritQuaddicted

I temporarily disabled Web Audio API support because the synchronous version of createBuffer is now gone :( Maybe I'll make a fix later using copyToChannel.

Triang3l avatar Sep 04 '14 15:09 Triang3l

Thanks! If you remember, a while back I packaged your code into an app for the Chrome web store, doing some really nasty hacks to make it load the resources asynchronously. I changed the process so that now it loads your code 100% unmodified into a "webview" tag, which allows it to do the synchronous XHR stuff. https://github.com/kzahel/WebQuake-Chrome

kzahel avatar Sep 05 '14 12:09 kzahel