From 99d386b61a29e6f8cadf2f91019017736c681f00 Mon Sep 17 00:00:00 2001 From: erihel Date: Tue, 9 Apr 2013 13:20:31 +0200 Subject: * Fixed problem with MuteAll and some sounds not playing after muting other sounds (like game menu sound) --- src/sound/oalsound/channel.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/sound/oalsound/channel.cpp') 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; +} -- cgit v1.2.3-1-g7c22