axmol
axmol copied to clipboard
Audio stuttering on iOS
- axys version: 9e8543f
- devices test on: iPhone SE 2nd gen iOS 16
- developing environments
- Xcode version: 14.0
Steps to Reproduce:
- Run template app.
- Play an infinite loop BGM .mp3 file (400-800KB).
- Show an IronSource rewarded video ad.
- The BGM will stuttering when the ad's end card shows up.
- When the audio is stuttering, simply change the volume up and down will fix it.
This problem is very similar to the old cocos2dx, reference below: https://github.com/cocos2d/cocos2d-x/issues/17800 https://github.com/cocos2d/cocos2d-x/issues/18597
After setting QUEUEBUFFER_TIME_STEP to 0.1f and PCMDATA_CACHEMAXSIZE to 3 times size, it would be better, however if run on an extreme slow iPhone 5S iOS 12, the audio will still stuttering.
A demo video on iPhone SE 2nd gen iOS 16: https://www.youtube.com/watch?v=pTgVZIDwCYU