From 7aa9985918a315e0c5ce4134c58db88351c04d45 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 26 Mar 2010 08:34:58 +0000 Subject: fixed max volume git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1643 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/soundcore.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/qmmp/soundcore.cpp b/src/qmmp/soundcore.cpp index 9ead18b6b..d2ce9b13c 100644 --- a/src/qmmp/soundcore.cpp +++ b/src/qmmp/soundcore.cpp @@ -161,6 +161,8 @@ void SoundCore::setEQEnabled(bool on) void SoundCore::setVolume(int L, int R) { + L = qBound(0, L, 100); + R = qBound(0, R, 100); m_volumeControl->setVolume(L, R); } -- cgit v1.2.3-13-gbd6f