From 811bb6207d1109d416fedd6d084d8a68db94f648 Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Thu, 23 May 2024 10:53:04 -0400 Subject: [PATCH] Remapped volume to -55db..+5db range to match previous max level. --- htdocs/lib/UI.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/lib/UI.js b/htdocs/lib/UI.js index 308252c4..ab9fedce 100644 --- a/htdocs/lib/UI.js +++ b/htdocs/lib/UI.js @@ -76,8 +76,8 @@ UI.setVolume = function(x) { LS.save('volume', x); $('#openwebrx-panel-volume').val(x) if (audioEngine) { - // Map 0-150 to -50..0db gain - gain = x > 0? Math.min(1.0, Math.pow(10, ((x / 3.0) - 50) / 20)) : 0; + // Map 0-150 to -55..+5db gain + gain = x > 0? Math.pow(10, ((x / 2.5) - 55) / 20) : 0; audioEngine.setVolume(gain); } }