Merge pull request #294 from joerg-krause/fix-vol2attn

Fix vol2attn
This commit is contained in:
Mike Brady
2016-05-09 15:01:27 +01:00
+1 -1
View File
@@ -437,7 +437,7 @@ double vol2attn(double vol, long max_db, long min_db) {
#define order 3
double vol_setting = max_db;
double vol_setting = 0;
if ((vol <= 0.0) && (vol >= -30.0)) {
long range_db = max_db - min_db; // this will be a positive nunmber