cc.AudioEngine.getInstance().init(“mp3,ogg,wav”);
cc.Loader.shareLoader().preload([
{type:“effect”,src:“Resources/esparks2”}, //esparks2
{type:“bgm”,src:“Resources/DoomCity2”}
]);
The esparks2 is a wave file, when the program is running it says it fails to esparks2.mp3. Why it can’t recognize wav file?