Fix decibel->volume calculation

Didn't stop to think twice about this line - should've.
Volume control should be much nicer now.
This commit is contained in:
James Laird
2011-04-18 11:01:21 +10:00
parent 2c3206c124
commit 086ac17cef
+1 -1
View File
@@ -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;
}