Ogg cannot play more than 5 times?

My cocos2d js is v3.0beta. When I debug my code running in Chrome. I got this error when I play an effect more than 5 times:

Error: res/game/sndClick.ogg greater than 5

The code is:

cc.audioEngine.playEffect(res.game.click_ogg);

What’s the problem?

There could be two issue:

  1. You are playing more than 5 sounds simultaneously
  2. You are using latest version Chrome which have modified their audio API, causing audio stops to trigger the end callback, so the browser think you are playing more than 5 sounds.

Do you fix it? And Which release version has it been merged in?

In Cocos2d-JS v3.0 RC2 we have fixed this issue, you can refer to this topic: Cocos2d-JS v3.0 RC2 Released!

I’m still getting this error in latest cocos2d-js version. Is there a workaround?

Can you be more specific about the environment to reproduce the problem ?

Not really.

But the problem seems to be gone now. I have no clue what happened there.