This error exists in cocos2d v4.0
bool PlayScene::init()
{
if (!Scene::init())
{
return false;
}
AudioEngine::preload(“sounds/hit.mp3”);
....
AudioEngine::play2d("sounds/hit.mp3");
Then when game closed, exception thrown.
This error exists in cocos2d v4.0
bool PlayScene::init()
{
if (!Scene::init())
{
return false;
}
AudioEngine::preload(“sounds/hit.mp3”);
....
AudioEngine::play2d("sounds/hit.mp3");
Then when game closed, exception thrown.
It works in cocos 3.17 using the same code / mp3 file? If yes, don’t forget to upload a github issue