From 086ac17cef4e1e9df646d7ace1ef0524bd7d6344 Mon Sep 17 00:00:00 2001 From: James Laird Date: Mon, 18 Apr 2011 11:01:21 +1000 Subject: [PATCH] Fix decibel->volume calculation Didn't stop to think twice about this line - should've. Volume control should be much nicer now. --- hairtunes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hairtunes.c b/hairtunes.c index 206fc0bd..679ad468 100644 --- a/hairtunes.c +++ b/hairtunes.c @@ -232,7 +232,7 @@ int main(int argc, char **argv) { assert(f<=0); if (debug) fprintf(stderr, "VOL: %lf\n", f); - volume = pow(10.0,0.1*f); + volume = pow(10.0,0.05*f); fix_volume = 65536.0 * volume; continue; }