Skip to content

Commit

Permalink
Modify the volume control profile to make the lower range slower to p…
Browse files Browse the repository at this point in the history
…rogress -- seems smoother overall on a 120db (nominal) device.
  • Loading branch information
mikebrady committed Sep 15, 2014
1 parent d5fb35c commit 8548cdc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down
Binary file modified documents/Shairport Volume Control Transfer Function.pdf
Binary file not shown.
Binary file not shown.

0 comments on commit 8548cdc

Please sign in to comment.