mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
audio_mixer: correct conversion
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user