We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
SimpleAudioEngine::playEffect() no response when activity enter foreground on android
SimpleAudioEngine::playEffect() no response when activity enter foreground on android
Bug #3756 [Closed]
- Description updated (diff)
Some results of debug:
1. This bug only happened in version 2.x
2. The reason is :
OnLoadCompletedListener.onLoadComplete()
is not invoked after the method
mSoundPool.load()
in Cocos2dxSound.java.
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8318
Status: | Closed | |
---|---|---|
Start date: | 2014-01-17 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 0% |
|
Category: | android | |
Target version: | 2.2.4 |
How to reproduce the bug:
1. Prepare an ogg file in Resources directory
2. Invoke method SimpleAudioEngine::playEffect(“xxx.ogg”) in AppDelegate::applicationWillEnterForeground()
3. Build & Run the android project. Press “Home”, then start the app again.
The screen of the phone will be black.