Add debug class names
This commit is contained in:
parent
743479cd53
commit
7c22d8d058
1 changed files with 2 additions and 2 deletions
|
@ -115,11 +115,11 @@ class HtmlAudioPlayer {
|
|||
if (userSettings.selectAudioNormalization() == 'TrackGain' && options.item.LUFS != null) {
|
||||
const dbGain = -18 - options.item.LUFS;
|
||||
self.gainNode.gain.value = Math.pow(10, (dbGain / 20));
|
||||
console.debug('Using track gain');
|
||||
console.debug('[HtmlAudioPlayer] Using track gain');
|
||||
} 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');
|
||||
console.debug('[HtmlAudioPlayer] Using album gain');
|
||||
} else {
|
||||
self.gainNode.gain.value = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue