Skip to content

Commit

Permalink
Fix decibel->volume calculation
Browse files Browse the repository at this point in the history
Didn't stop to think twice about this line - should've.
Volume control should be much nicer now.
  • Loading branch information
abrasive committed Apr 18, 2011
1 parent 2c3206c commit 086ac17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hairtunes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 086ac17

Please sign in to comment.