- OS platform / Browser: Ubuntu 14.04LTS Firefox34.0
- melonJS version: melonJS-2.0.2.js
- Extensive Bug description: Audio plays in chrome but not firefox. From the looks of it, it seems to me that firefox is trying to read an mp3 as an ogg.
- How to reproduce the bug: Go to http://linuxmustang.pw/melonJS/ in firefox
- An extract of the Console log, to show possible exception/errors raised by the engine or the browser (below)
The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. melonJS
The buffer passed to decodeAudioData contains an unknown content type. melonJS
The buffer passed to decodeAudioData contains an unknown content type. melonJS
The buffer passed to decodeAudioData contains an unknown content type. melonJS
The buffer passed to decodeAudioData contains an unknown content type. melonJS
The buffer passed to decodeAudioData contains an unknown content type. melonJS
The buffer passed to decodeAudioData contains an unknown content type. melonJS
me.audio.Error: melonJS: failed loading smile
My sound file is "data/bgm/smile/smile.mp3"
from my resource.js:
{name: "smile", type: "audio", src: "data/bgm/smile/"},
from my play.js:
onResetEvent: function()
{
// load a level
me.levelDirector.loadLevel("area01");
// reset the score
game.data.score = 0;
// play the audio track
me.audio.playTrack("smile");
...
}
can anyone see why this might work in chrome, but not work for firefox?