AudioEngine.playEffect only plays .ogg file

Hi,

I found out by trial and error and looking at the code that AudioEngine.playEffect only plays .ogg files, but doesn’t warn that it can’t play any other file format.

i.e if you specify a file name of “crash.mp3” the AudioEngine code strips off the .mp3 and replaces it with .ogg

It would be better if the core code either does and Assert or possible just logs to the console that only OGG file format is supported if other file types passed to playEffect

It has been fixed. Please take a look at this commit: https://github.com/cocos2d/cocos2d-html5/commit/593931902543d09a223923a20a270c21eeaa927d

For now, the audio files use “sound” type instead of “bum” and “effect”.