Skip to content
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

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

Open
kzahel opened this issue Sep 4, 2014 · 3 comments

Comments

@kzahel
Copy link

kzahel commented Sep 4, 2014

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

@SpiritQuaddicted
Copy link

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

@Triang3l
Copy link
Owner

Triang3l commented Sep 4, 2014

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.

@kzahel
Copy link
Author

kzahel commented Sep 5, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants