mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update src/plugins/htmlAudioPlayer/plugin.js
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
parent
c9b7f834ca
commit
88d16520e4
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class HtmlAudioPlayer {
|
||||||
|
|
||||||
let val = options.url;
|
let val = options.url;
|
||||||
console.debug('playing url: ' + val);
|
console.debug('playing url: ' + val);
|
||||||
import('../../scripts/settings/userSettings').then((userSettings)=> {
|
import('../../scripts/settings/userSettings').then((userSettings) => {
|
||||||
if (userSettings.enableAudioNormalization() && options.item.LUFS != null) {
|
if (userSettings.enableAudioNormalization() && options.item.LUFS != null) {
|
||||||
const dbGain = -18 - options.item.LUFS;
|
const dbGain = -18 - options.item.LUFS;
|
||||||
self.gainNode.gain.value = Math.pow(10, (dbGain / 20));
|
self.gainNode.gain.value = Math.pow(10, (dbGain / 20));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue