麻烦整理一个demo工程给我测试一下。谢谢啊。
完整项目没法给,这么简单的东西 还需要 测试工程吗? 你用audioEngin播放一个音乐 模拟器按最小化 再切回来 声音就没了 Mac

我用-x工程跑一下好了。。。
你这边重现不了?
我在cocos2d-x上的确无法重现,但是在creator的工程里面重现了。
得查查creator里面如何使用audio的。
好 请尽快修复
顺便问一个 你们到底有没有好好 测试
嗯,会尽快修复,模拟器需要重新编译,需要等下个新版本。
构建出来的工程可以按照如下方法临时修改一下AppDelegate.cpp:
// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
void AppDelegate::applicationDidEnterBackground()
{
auto director = Director::getInstance();
director->stopAnimation();
director->getEventDispatcher()->dispatchCustomEvent("game_on_hide");
// 注释SimpleAudioEngine的调用
// SimpleAudioEngine::getInstance()->pauseBackgroundMusic();
// SimpleAudioEngine::getInstance()->pauseAllEffects();
}
// this function will be called when the app is active again
void AppDelegate::applicationWillEnterForeground()
{
auto director = Director::getInstance();
director->startAnimation();
director->getEventDispatcher()->dispatchCustomEvent("game_on_show");
// 注释SimpleAudioEngine的调用
// SimpleAudioEngine::getInstance()->resumeBackgroundMusic();
// SimpleAudioEngine::getInstance()->resumeAllEffects();
}
安卓退到后台还会播放音乐的bug 整到1.3分支了吗
按照你这种方法修改之后,ios上会不会也出现退到后台 音乐继续播?
不会的。。。
