Having trouble to run the play sound effect function

cc.AudioManager.sharedEngine().init(“mp3”);

cc.Loader.shareLoader().preload([
{type:“effect”,src:“Resources/monster/effect2”}
]);

cc.AudioManager.sharedEngine().playEffect(“Resources/monster/effect2”);

I am using the cc.loadjs(‘…/lib/cocos2d-html5-alpha-canvasmenu-min.js’);

The error is INVALID DOM state when I step to the playEffect function.

the current version of cocos2d-html5 is v2.0
updated version of cocos2d-html5 and use new audio api :wink: