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:
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user