[colobot] 139/145: Fixed sound channels not being unmuted properly

Didier Raboud odyx at moszumanska.debian.org
Mon Jul 11 12:56:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 19cc25f7164aafe4576075afb935c985fe9f9a53
Author: krzys-h <krzys_h at interia.pl>
Date:   Sun Jul 10 20:12:44 2016 +0200

    Fixed sound channels not being unmuted properly
---
 src/sound/oalsound/alsound.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/sound/oalsound/alsound.cpp b/src/sound/oalsound/alsound.cpp
index cfa335d..020bfba 100644
--- a/src/sound/oalsound/alsound.cpp
+++ b/src/sound/oalsound/alsound.cpp
@@ -356,6 +356,7 @@ int CALSound::Play(SoundType sound, const Math::Vector &pos, float amplitude, fl
     chn->SetFrequency(frequency);
     chn->SetVolume(powf(amplitude * chn->GetVolumeAtrib(), 0.2f) * m_audioVolume);
     chn->SetLoop(loop);
+    chn->Mute(false);
 
     if (!chn->Play())
     {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list