audio_mixer: correct conversion

Origin commit data
------------------
Branch: master
Commit: 9c22d47bc3
Author: martii <you@example.com>
Date: 2012-09-05 (Wed, 05 Sep 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2012-09-05 20:49:47 +02:00
parent e0c90be5e7
commit 1ab2470e9e

View File

@@ -66,5 +66,5 @@ bool mixerVolume::setVolume(long volume) {
return elem return elem
&& (volume > -1) && (volume > -1)
&& (volume < 101) && (volume < 101)
&& !snd_mixer_selem_set_playback_volume_all(elem, min + volume * (max - min)/101); && !snd_mixer_selem_set_playback_volume_all(elem, min + volume * (max - min)/100);
} }