Please answer these questions to help fix this issue:
What’s the issue?
- Sound effect is never played after re-entering single or twice from background. But background music is played well. This issue is occurred only if device is iPhone 5 and 5s (iOS 7.1) and is playing background BGM in the game. When I tested it on iPhone 4S(iOS 7.1) and iPad Mini Retina(iOS 7.1) , it is never occurred. Also turned off BGM, it is never occurred on any devices.
What’s the engine version?
- 2.1.X , 2.2.2
How to reproduce it?
- on iPhone 5 or 5s(iOS 7.1)
- SimpleAudioEngine::sharedEngine()->playBackgroundMusic(~~~ .mp3, true);
- Press home button and go to background and click the app to come back to foreground. Repeat 1 or 2 times.
- SimpleAudioEngine::sharedEngine()->playEffect(~~~.mp3) -> never played.