axmol icon indicating copy to clipboard operation
axmol copied to clipboard

Audio stuttering on iOS

Open qoozta opened this issue 3 years ago • 0 comments

  • axys version: 9e8543f
  • devices test on: iPhone SE 2nd gen iOS 16
  • developing environments
    • Xcode version: 14.0

Steps to Reproduce:

  1. Run template app.
  2. Play an infinite loop BGM .mp3 file (400-800KB).
  3. Show an IronSource rewarded video ad.
  4. The BGM will stuttering when the ad's end card shows up.
  5. 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

qoozta avatar Sep 16 '22 02:09 qoozta