diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-03-26 08:34:58 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-03-26 08:34:58 +0000 |
| commit | 7aa9985918a315e0c5ce4134c58db88351c04d45 (patch) | |
| tree | 31d62f7e52709bd4bfb22936a9b1b9bde898b646 | |
| parent | 79aa151fad19468074d4959e505000e4468fa1fd (diff) | |
| download | qmmp-7aa9985918a315e0c5ce4134c58db88351c04d45.tar.gz qmmp-7aa9985918a315e0c5ce4134c58db88351c04d45.tar.bz2 qmmp-7aa9985918a315e0c5ce4134c58db88351c04d45.zip | |
fixed max volume
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1643 90c681e8-e032-0410-971d-27865f9a5e38
| -rw-r--r-- | src/qmmp/soundcore.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |
