Need solution for this ANR

There seems to be an ANR problem and has been around for a long time.It is about 30% of the ANR of my game. That is ANR about AudioEngine

This is pictures:

it cause anr when call AudioEngine stop. I have use admob in my game.

@slackmoehrle @zhangxm Can you help me?

1 Like

I’ll ask engineering to look at this

Thanks! Hope it can be fixed

Hi @genix_developer,
Can you confirm this happens only when using admob?
If that is the case, you might want to change your topic title to mention the keywords ‘admob’ and ‘audio’ so that those who used admob before can give you some pointers on handling the audio.

您好,我的项目刚好也是使用了admob,然后也是遇到了这个ANR,还是比较高的,我本地无法重现,一般是在三星比较低端的机子出现概率很高,特别海外的用户

I got one method to solve it!
change the code in class AudioPlayerProvider.cpp。

static AudioFileIndicator __audioFileIndicator[] = {
{“default”, 128000}, // If we could not handle the audio format, return default value, the position should be first.
{".wav", 1024000},
{".ogg", 12800000},
{".mp3", 16000000}
};