summaryrefslogtreecommitdiffstats
path: root/src/sound
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-05-01 12:12:32 +0200
committerkrzys-h <krzys_h@interia.pl>2013-05-01 12:12:32 +0200
commitf419293207fe27113fb16daebec959e94a30dbee (patch)
tree2505b8c5b5eeef5f01a0b715044ca00bea3ef271 /src/sound
parent643153d64dd25cb27fae76c9cc22e9bdaa2e352e (diff)
downloadcolobot-f419293207fe27113fb16daebec959e94a30dbee.tar.gz
colobot-f419293207fe27113fb16daebec959e94a30dbee.tar.bz2
colobot-f419293207fe27113fb16daebec959e94a30dbee.zip
Minor refactoring
Diffstat (limited to 'src/sound')
-rw-r--r--src/sound/oalsound/alsound.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sound/oalsound/alsound.cpp b/src/sound/oalsound/alsound.cpp
index cfb0c70..a37cced 100644
--- a/src/sound/oalsound/alsound.cpp
+++ b/src/sound/oalsound/alsound.cpp
@@ -258,7 +258,7 @@ bool ALSound::SearchFreeBuffer(Sound sound, int &channel, bool &bAlreadyLoaded)
return true;
}
delete chn;
- GetLogger()->Error("Could not open channel to play sound!");
+ GetLogger()->Error("Could not open channel to play sound!\n");
return false;
}
@@ -279,7 +279,7 @@ bool ALSound::SearchFreeBuffer(Sound sound, int &channel, bool &bAlreadyLoaded)
return true;
}
delete chn;
- GetLogger()->Warn("Could not open additional channel to play sound!");
+ GetLogger()->Warn("Could not open additional channel to play sound!\n");
}
}
}
@@ -287,7 +287,7 @@ bool ALSound::SearchFreeBuffer(Sound sound, int &channel, bool &bAlreadyLoaded)
int lowerOrEqual = -1;
for (auto it : mChannels) {
if (it.second->GetPriority() < priority) {
- GetLogger()->Debug("Sound channel with lower priority will be reused.");
+ GetLogger()->Debug("Sound channel with lower priority will be reused.\n");
channel = it.first;
return true;
}
@@ -297,7 +297,7 @@ bool ALSound::SearchFreeBuffer(Sound sound, int &channel, bool &bAlreadyLoaded)
if (lowerOrEqual != -1) {
channel = lowerOrEqual;
- GetLogger()->Debug("Sound channel with lower or equal priority will be reused.");
+ GetLogger()->Debug("Sound channel with lower or equal priority will be reused.\n");
return true;
}