I created a empty new project using
cocos new DemoJS -p net.comtor.games.demojs -l js -d DemoJS
I try to instantiate audio engine using:
var audioEngine = cc.AudioEngine.getInstance();
audioEngine.playEffect(res.bounce_mp3);
Browser reports next error.
TypeError: cc.AudioEngine is undefined
What I am doing wrong?