Quantcast
Channel: cocos2d-x - Cocos Forums
Viewing all articles
Browse latest Browse all 2748

Crash with new AudioEngine code in v4.0

$
0
0

@BonBonSlick wrote:

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.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 2748

Trending Articles