jeromeetienne / webaudio.js

web audio library for games
http://jeromeetienne.github.com/webaudio.js
98 stars 15 forks source link

Firefox 25 & Safari support #23

Open plrdev opened 11 years ago

plrdev commented 11 years ago

In Firefox 25 Mozilla finally added support for WebAudio API. However, when I tried it with webaudio.js it wouldn't play the sounds and afterwards my sounds weren't working from other apps either. Only restart restored the situation. This happens everytime. Any chance to get webaudio.js updated?

Also Safari uses the old function names and was giving errors. This was remedied by using http://cwilso.github.io/AudioContext-MonkeyPatch/AudioContextMonkeyPatch.js but it would be nice to have it integrated.

jeromeetienne commented 10 years ago

do you have any trace ? i would love to fix it

plrdev commented 10 years ago

I will try again, but it didn't give any actual errors to get any trace. You can try it yourself at www.saarella.fi/peli - this is our game and it uses webaudio.js. It works with Chrome, but with Firefox 25 something weird happens to the sounds. It can find the AudioContext and then loads the sounds. When playing, it goes crazy somehow.

Thanks for looking into this, let me know if I can be of more help - I will do it.