Modify the volume control profile to make the lower range slower to progress -- seems smoother overall on a 120db (nominal) device.

This commit is contained in:
Mike Brady
2014-09-15 21:12:59 +01:00
parent d5fb35cd83
commit 8548cdc67d
3 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -401,7 +401,7 @@ double vol2attn(double vol, long max_db, long min_db) {
double first_slope = -2500.0; // this is the slope of the attenuation at the high end -- 25dB for the full rotation.
if (-range_db>first_slope)
first_slope = range_db;
double lines[order][2] = {{0,first_slope},{-12,first_slope-(range_db+first_slope)/2},{-19,-range_db}};
double lines[order][2] = {{0,first_slope},{-5,first_slope-(range_db+first_slope)/2},{-10,-range_db}};
int i;
for (i=0;i<order;i++) {
if (vol<=lines[i][0]) {