Added basic/advanced volume control tooltip (#1092)
Basic volume control tooltip will be in a percentage. Advanced volume control will be in dBFS
This commit is contained in:
parent
378cf21af6
commit
07f1f48a99
3 changed files with 13 additions and 1 deletions
|
@ -297,7 +297,8 @@ 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'
|
||||
let advancedTooltip = 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'
|
||||
return this.cfg.audio.advanced ? advancedTooltip : (this.mk.volume * 100).toFixed(0) + '%'
|
||||
},
|
||||
mainMenuVisibility(val, isContextMenu) {
|
||||
if(this.chrome.sidebarCollapsed && !isContextMenu) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue