summaryrefslogtreecommitdiffstats
path: root/src/sound/oalsound/channel.cpp
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-04-09 13:20:31 +0200
committererihel <erihel@gmail.com>2013-04-09 13:20:31 +0200
commit99d386b61a29e6f8cadf2f91019017736c681f00 (patch)
treedfa93a0d9f4cc0ebf3c5c49f17b20e9eef10fa81 /src/sound/oalsound/channel.cpp
parenta66abd4990c6c415bafe3ce879bc67d7539a2901 (diff)
downloadcolobot-99d386b61a29e6f8cadf2f91019017736c681f00.tar.gz
colobot-99d386b61a29e6f8cadf2f91019017736c681f00.tar.bz2
colobot-99d386b61a29e6f8cadf2f91019017736c681f00.zip
* Fixed problem with MuteAll and some sounds not playing after muting other sounds (like game menu sound)
Diffstat (limited to 'src/sound/oalsound/channel.cpp')
-rw-r--r--src/sound/oalsound/channel.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sound/oalsound/channel.cpp b/src/sound/oalsound/channel.cpp
index 746282e..686e909 100644
--- a/src/sound/oalsound/channel.cpp
+++ b/src/sound/oalsound/channel.cpp
@@ -30,6 +30,7 @@ Channel::Channel() {
mPriority = 0;
mBuffer = nullptr;
mLoop = false;
+ mMute = false;
mInitFrequency = 0.0f;
mStartAmplitude = 0.0f;
mStartFrequency = 0.0f;
@@ -351,3 +352,15 @@ void Channel::PopEnvelope()
void Channel::SetLoop(bool loop) {
mLoop = loop;
}
+
+
+void Channel::Mute(bool mute)
+{
+ mMute = mute;
+}
+
+
+bool Channel::IsMuted()
+{
+ return mMute;
+}