Change ReplayGain Pre-Amp default value from 0dB to 3dB

This commit is contained in:
Julien Maille 2026-01-10 15:25:00 +01:00
parent 50b850a87d
commit 090d276765
3 changed files with 3 additions and 3 deletions

View file

@ -653,7 +653,7 @@
<span class="label">ReplayGain Pre-Amp</span>
<span class="description">Adjust gain manually (dB)</span>
</div>
<input type="number" id="replay-gain-preamp" value="0" step="0.5" style="width: 80px;">
<input type="number" id="replay-gain-preamp" value="3" step="0.5" style="width: 80px;">
</div>
</div>

View file

@ -287,7 +287,7 @@ export function initializeSettings(scrobbler, player, api, ui) {
if (replayGainPreamp) {
replayGainPreamp.value = replayGainSettings.getPreamp();
replayGainPreamp.addEventListener("change", (e) => {
replayGainSettings.setPreamp(parseFloat(e.target.value) || 0);
replayGainSettings.setPreamp(parseFloat(e.target.value) || 3);
player.applyReplayGain();
});
}

View file

@ -504,7 +504,7 @@ export const replayGainSettings = {
},
getPreamp() {
const val = parseFloat(localStorage.getItem(this.STORAGE_KEY_PREAMP));
return isNaN(val) ? 0 : val;
return isNaN(val) ? 3 : val;
},
setPreamp(db) {
localStorage.setItem(this.STORAGE_KEY_PREAMP, db);