cocos2d / cocos2d-html5

Cocos2d for Web Browsers. Built using JavaScript.
https://www.cocos.com
3.07k stars 902 forks source link

No Sound in Firefox #1234

Closed Trurl101 closed 10 years ago

Trurl101 commented 10 years ago

It seem that since the latest firefox version the deprecated method "createGainNode()" is no longer working.

So it is necessary to change line 795 in "SimpleAudioEngine.js": sfxCache.volumeNode = this._ctx.createGainNode();

to: sfxCache.volumeNode = this._ctx.createGain();

dingpinglv commented 10 years ago

Hi Trurl101,

Thanks for your noticing, we will fix it in this week.

dingpinglv commented 10 years ago

It has been fixed at https://github.com/cocos2d/cocos2d-html5/pull/1259.

Thank you, Trurl101. David