Open dumganhar opened 7 years ago
+1 I agree :D
Any chance to add this "feature"? I'm really struggling with this issue A LOT.
Ideally one would mix the internal data buffer(s) if necessary (or always?) into a single or few channel(s) of actual playback. It's possible this is only practical on desktop and high-end mobile devices.
Please refer to https://github.com/cocos2d/cocos2d-x/pull/17233
Steps to Reproduce:
HOW TO DO:
Basically, we need to modify the behavior of playing more than
MAX
instances (32). Currently, we just ignore the latest audio added to AudioEngine, IMO, this strategy doesn't make sense. We probably could take a look atSoundPool
implementation in Android, which removes the oldest audio added toAudioEngine
and re-uses it for the latest one.