summaryrefslogtreecommitdiffstats
path: root/src/sound/oalsound/channel.cpp
diff options
context:
space:
mode:
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;
+}