1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-28 23:06:24 +02:00

Changed some log.

This commit is contained in:
Frank Zago 2009-10-13 02:04:06 +00:00
parent 17a795015a
commit bf64a9a851

View File

@ -39,7 +39,7 @@ void CAudioBase::init()
if (Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 1024)==-1) 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; return;
} }
@ -263,7 +263,7 @@ int CSoundHandler::playSound(soundBase::soundID soundID, int repeats)
{ {
channel = Mix_PlayChannel(-1, chunk, repeats); channel = Mix_PlayChannel(-1, chunk, repeats);
if (channel == -1) 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 { } else {
channel = -1; channel = -1;