From 6cd7f4ca22b4cdf3fc8b5b422befb286a5de64a9 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Tue, 20 Dec 2005 15:58:28 +0000 Subject: [PATCH] Volume doesnt auto unmute if at 100% already fixed --- audio.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio.cc b/audio.cc index bf6ed4b..116c1ca 100644 --- a/audio.cc +++ b/audio.cc @@ -242,20 +242,20 @@ int Audio::test() int Audio::volumeUp() { if (!initted) return 0; + if (userMute) toggleUserMute(); if (volume == 20) return volume; volume++; setVolume(volume); - if (userMute) toggleUserMute(); return volume; } int Audio::volumeDown() { if (!initted) return 0; + if (userMute) toggleUserMute(); if (volume == 0) return 0; volume--; setVolume(volume); - if (userMute) toggleUserMute(); return volume; } -- 2.39.5