Sounds played together when game tab brought in focus

Hi,

Consider the following case : -

Game is running in a tab that is not in focus. Although the game is out of focus all the effect sounds are played. These sounds are played when certain messages arrive from server (game connects to NodeJs server via socket.io) . When I switch to the game tab then in spite of all the sounds having been played, those sounds are played again together, creating a high noise.

How should I prevent this behavior ?

Regards,
Siddhant

Hey, which Cocos2D JS version are you using? I had a very similar problem before but it was eventually fixed and it should be working correctly in v3.6.

Hey Ruluk,

We are using v3.5. Will upgrade now.

Thanks,
Siddhant