dB SPL display

This commit is contained in:
maikirakiwi 2022-05-02 23:46:04 -07:00
parent c70e9fc5b4
commit d1e7fdcc4a
9 changed files with 35 additions and 6 deletions

View file

@ -284,6 +284,9 @@ const app = new Vue({
}
}
},
formatVolumeTooltip() {
return this.cfg.audio.dBSPL ? (Number(this.cfg.audio.dBSPLcalibration) + (Math.log10(this.mk.volume) * 20)).toFixed(2) + ' dB SPL' : (Math.log10(this.mk.volume) * 20).toFixed(2) + ' dBFS'
},
mainMenuVisibility(val) {
if (val) {
(this.mk.isAuthorized) ? this.chrome.menuOpened = !this.chrome.menuOpened : false;