Change ReplayGain Pre-Amp default value from 0dB to 3dB
This commit is contained in:
parent
50b850a87d
commit
090d276765
3 changed files with 3 additions and 3 deletions
|
|
@ -653,7 +653,7 @@
|
||||||
<span class="label">ReplayGain Pre-Amp</span>
|
<span class="label">ReplayGain Pre-Amp</span>
|
||||||
<span class="description">Adjust gain manually (dB)</span>
|
<span class="description">Adjust gain manually (dB)</span>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -287,7 +287,7 @@ export function initializeSettings(scrobbler, player, api, ui) {
|
||||||
if (replayGainPreamp) {
|
if (replayGainPreamp) {
|
||||||
replayGainPreamp.value = replayGainSettings.getPreamp();
|
replayGainPreamp.value = replayGainSettings.getPreamp();
|
||||||
replayGainPreamp.addEventListener("change", (e) => {
|
replayGainPreamp.addEventListener("change", (e) => {
|
||||||
replayGainSettings.setPreamp(parseFloat(e.target.value) || 0);
|
replayGainSettings.setPreamp(parseFloat(e.target.value) || 3);
|
||||||
player.applyReplayGain();
|
player.applyReplayGain();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -504,7 +504,7 @@ export const replayGainSettings = {
|
||||||
},
|
},
|
||||||
getPreamp() {
|
getPreamp() {
|
||||||
const val = parseFloat(localStorage.getItem(this.STORAGE_KEY_PREAMP));
|
const val = parseFloat(localStorage.getItem(this.STORAGE_KEY_PREAMP));
|
||||||
return isNaN(val) ? 0 : val;
|
return isNaN(val) ? 3 : val;
|
||||||
},
|
},
|
||||||
setPreamp(db) {
|
setPreamp(db) {
|
||||||
localStorage.setItem(this.STORAGE_KEY_PREAMP, db);
|
localStorage.setItem(this.STORAGE_KEY_PREAMP, db);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue