Problem with cocos2d-js v 3.8 audioEngine and Lollipop

Hello,

This is my first game that I develop with cocos2d-JS and actually my game performs well on iOS and Android, but in Android Lollipop only performs well without audio. I did search but no one reports this issue with this version, am I doing something wrong maybe?

The Android Logcat output the following:

12-21 23:03:08.207 4633-4633/com.pekebyte.porepito.run E/MediaPlayer: Should have subtitle controller already set
12-21 23:03:08.207 4633-4692/com.pekebyte.porepito.run E/MediaPlayer: Should have subtitle controller already set
12-21 23:03:08.225 4633-4692/com.pekebyte.porepito.run E/MediaPlayer: Should have subtitle controller already set
12-21 23:03:08.226 4633-4633/com.pekebyte.porepito.run E/MediaPlayer: Should have subtitle controller already set
12-21 23:03:11.529 4633-4692/com.pekebyte.porepito.run E/MediaPlayer: Should have subtitle controller already set
12-21 23:03:11.530 4633-4633/com.pekebyte.porepito.run E/MediaPlayer: Should have subtitle controller already set
12-21 23:03:11.552 4633-4692/com.pekebyte.porepito.run E/MediaPlayer: Should have subtitle controller already set
12-21 23:03:11.552 4633-4633/com.pekebyte.porepito.run E/MediaPlayer: Should have subtitle controller already set
12-21 23:03:11.560 4633-4692/com.pekebyte.porepito.run E/MediaPlayer: Should have subtitle controller already set
12-21 23:03:11.561 4633-4633/com.pekebyte.porepito.run E/MediaPlayer: Should have subtitle controller already set

And I use the audioengine like this

cc.audioEngine.playMusic(res.sounds.bgsong, true);

Thanks in advance for your help

Is this just a warning? You could try to filter out the message. It sounds like it’s a benign issue that you can ignore:

If you want to get rid of the warning feel free to try the “don’t use in production” code example. Maybe someone will update the audio engine to support creating with an empty subtitle controller.

Thanks for your reply!.

Yes I read that I can ignore that warning. But somehow in Android Lollipop my game lags once I tap on the screen which the action is that my character jumps and play an audio effect, I have tested my game in an chinese tablet with KitKat and the game doesn’t lags, only when I test from Lollipop and play the audio effect, but the android Logcat only throws that warning.

We had a similar issue, but found the new AudioEngine seemed to fix the problem. The lag is likely due to excess logging of these warnings, so ideally one could catch the exception or disable this specific warning from logging.

I wonder if we’ll have your similar issue now using the latest v3.9 (or maybe it was fixed from 3.8 to 3.9). I’ll check into it on our end and see if we have the same warning printout.