Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

AudioEngine::end()调用异常

$
0
0

@shenzi1228 写道:

版本:"cocos2d-x-3.13"

调用AudioEngine::end()抛异常:

简单例子:
experimental::AudioEngine::play2d("booknextpage.mp3");

experimental::AudioEngine::stopAll();
experimental::AudioEngine::end();

线程函数
void threadFunc()
{
while (true) {
std::function task = nullptr;
{
std::unique_lock lk(_queueMutex);
if (_stop)
{
break;
}
if (!_taskQueue.empty())
{
task = std::move(_taskQueue.front());
_taskQueue.pop();
}
else
{
_taskCondition.wait(lk);
continue;
}
}

        task();
    }
}

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>