mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Change to single quotes
This commit is contained in:
parent
bbdb3ac6e5
commit
7d16932081
1 changed files with 4 additions and 4 deletions
|
@ -113,14 +113,14 @@ class HtmlAudioPlayer {
|
||||||
console.debug('playing url: ' + val);
|
console.debug('playing url: ' + val);
|
||||||
import('../../scripts/settings/userSettings').then((userSettings) => {
|
import('../../scripts/settings/userSettings').then((userSettings) => {
|
||||||
console.debug(userSettings.selectAudioNormalization());
|
console.debug(userSettings.selectAudioNormalization());
|
||||||
if (userSettings.selectAudioNormalization() == "TrackGain" && options.item.LUFS != null) {
|
if (userSettings.selectAudioNormalization() == 'TrackGain' && 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));
|
||||||
console.debug("using trackgain")
|
console.debug('using trackgain');
|
||||||
} else if (userSettings.selectAudioNormalization() == "AlbumGain" && options.item.LUFSAlbum != null) {
|
} else if (userSettings.selectAudioNormalization() == 'AlbumGain' && options.item.LUFSAlbum != null) {
|
||||||
const dbGain = -18 - options.item.LUFSAlbum;
|
const dbGain = -18 - options.item.LUFSAlbum;
|
||||||
self.gainNode.gain.value = Math.pow(10, (dbGain / 20));
|
self.gainNode.gain.value = Math.pow(10, (dbGain / 20));
|
||||||
console.debug("using albumgain")
|
console.debug('using albumgain');
|
||||||
} else {
|
} else {
|
||||||
self.gainNode.gain.value = 1;
|
self.gainNode.gain.value = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue