浏览代码

Changed some log.

Frank Zago 16 年之前
父节点
当前提交
bf64a9a851
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      hch/CMusicHandler.cpp

+ 2 - 2
hch/CMusicHandler.cpp

@@ -39,7 +39,7 @@ void CAudioBase::init()
 
 	if (Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 1024)==-1)
 	{
-		tlog1 << "Mix_OpenAudio error: %s!!!" << Mix_GetError() << std::endl;
+		tlog1 << "Mix_OpenAudio error: " << Mix_GetError() << std::endl;
 		return;
 	}
 
@@ -263,7 +263,7 @@ int CSoundHandler::playSound(soundBase::soundID soundID, int repeats)
 	{
 		channel = Mix_PlayChannel(-1, chunk, repeats);
 		if (channel == -1)
-			tlog1 << "Unable to play sound file " << soundID << std::endl;
+			tlog1 << "Unable to play sound file " << soundID << " , error " << Mix_GetError() << std::endl;
 		
 	} else {
 		channel = -1;