audio_mixer: correct conversion

This commit is contained in:
martii
2012-09-05 20:49:47 +02:00
parent 7cd67c9fad
commit 9c22d47bc3

View File

@@ -66,5 +66,5 @@ bool mixerVolume::setVolume(long volume) {
return elem
&& (volume > -1)
&& (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);
}