Add albumLUFS to mediaSource to prevent new DTO
This commit is contained in:
parent
01dc72924a
commit
28558ce6e4
2 changed files with 6 additions and 3 deletions
|
@ -116,8 +116,8 @@ class HtmlAudioPlayer {
|
|||
const dbGain = -18 - options.item.LUFS;
|
||||
self.gainNode.gain.value = Math.pow(10, (dbGain / 20));
|
||||
console.debug('Using track gain');
|
||||
} else if (userSettings.selectAudioNormalization() == 'AlbumGain' && options.item.LUFSAlbum != null) {
|
||||
const dbGain = -18 - options.item.LUFSAlbum;
|
||||
} else if (userSettings.selectAudioNormalization() == 'AlbumGain' && options.mediaSource.albumLUFS != null) {
|
||||
const dbGain = -18 - options.mediaSource.albumLUFS;
|
||||
self.gainNode.gain.value = Math.pow(10, (dbGain / 20));
|
||||
console.debug('Using album gain');
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue