diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-08-19 08:30:50 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-08-19 08:44:41 -0400 |
commit | 067f37d641ab7ae7171ea4bb362e723b0089e671 (patch) | |
tree | ba7153853c0931bd08c90206e45d94995e1b17c1 | |
parent | 969290450571bfb44ada07892dee69c18f88afc3 (diff) | |
download | mirror-ponymix-067f37d641ab7ae7171ea4bb362e723b0089e671.tar.gz mirror-ponymix-067f37d641ab7ae7171ea4bb362e723b0089e671.tar.bz2 mirror-ponymix-067f37d641ab7ae7171ea4bb362e723b0089e671.zip |
pulse: use ceil() instead of floor() for volume percentages
Fixes GHI#26.
-rw-r--r-- | pulse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -77,7 +77,7 @@ static pa_cvolume* value_to_cvol(long value, pa_cvolume *cvol) { } static int volume_as_percent(const pa_cvolume* cvol) { - return pa_cvolume_avg(cvol) * 100.0 / PA_VOLUME_NORM; + return pa_cvolume_avg(cvol) * 100.0 / PA_VOLUME_NORM + 0.5; } static int xstrtol(const char *str, long *out) { |