From 1ab2470e9e035db2d5cd30c9e3b9c535bc4707b2 Mon Sep 17 00:00:00 2001 From: martii Date: Wed, 5 Sep 2012 20:49:47 +0200 Subject: [PATCH] audio_mixer: correct conversion Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/9c22d47bc302c888dbe6cb9996157cddc6f6fe92 Author: martii Date: 2012-09-05 (Wed, 05 Sep 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libspark/audio_mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libspark/audio_mixer.cpp b/libspark/audio_mixer.cpp index aabf11d..f5a845a 100644 --- a/libspark/audio_mixer.cpp +++ b/libspark/audio_mixer.cpp @@ -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); }