我在把andoird游戏移植到cocos2d-x上的windows phone8时遇到了一个问题。我在它们中都有以下问题
The BG music continues to play when I press WINDOWS button.
It pauses when i press the button but after 5-10 seconds starts to play again提前感谢您的帮助。阿奎尔·拉扎
发布于 2014-06-22 04:42:53
转到cocos2dRenderer.cpp,找到Disconnect()方法。在方法中写下这一行
mApp->applicationDidEnterBackground();类似地,在CreateGLResources();函数中调用以下行
//应为applicationWillEnterForeground()
mApp->applicationWillEnterForeground();希望这能解决你的问题。祝你好运。
https://stackoverflow.com/questions/24182447
复制相似问题