aboutsummaryrefslogtreecommitdiffstats
path: root/src/volume.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-11 13:29:55 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-11 13:29:55 +0000
commit87f53c94d7361bb3aaa1369d26f76f049905fc82 (patch)
tree0b02c24cad9bcff81e36cf5dac06a821656c7566 /src/volume.c
parent3c24bf92b2ccc48f304259be845740c60b2acc4c (diff)
downloadmpd-87f53c94d7361bb3aaa1369d26f76f049905fc82.tar.gz
mpd-87f53c94d7361bb3aaa1369d26f76f049905fc82.tar.xz
mpd-87f53c94d7361bb3aaa1369d26f76f049905fc82.zip
more software volume tweeks
git-svn-id: https://svn.musicpd.org/mpd/trunk@684 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/volume.c')
-rw-r--r--src/volume.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/volume.c b/src/volume.c
index db27c0a13..38b6603c6 100644
--- a/src/volume.c
+++ b/src/volume.c
@@ -396,7 +396,7 @@ int getVolumeLevel() {
int changeSoftwareVolume(FILE * fp, int change, int rel) {
int new = change;
- if(rel) new+=getSoftwareVolume()/10.0+0.5;
+ if(rel) new+=volume_softwareSet;
if(new>100) new = 100;
else if(new<0) new = 0;
@@ -406,7 +406,7 @@ int changeSoftwareVolume(FILE * fp, int change, int rel) {
/*new = 100.0*(exp(new/50.0)-1)/(M_E*M_E-1)+0.5;*/
if(new>=100) new = 1000;
else if(new<=0) new = 0;
- else new = 1000.0*(exp(new/20.0)-1)/(148.413159103F-1)+0.5;
+ else new = 1000.0*(exp(new/25.0)-1)/(54.5981500331F-1)+0.5;
setPlayerSoftwareVolume(new);