Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17124

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: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17124

Latest Images

Trending Articles



Latest Images