Remove debugging
This commit is contained in:
committed by
Bill Thornton
parent
44e77011eb
commit
01dc72924a
@@ -112,15 +112,14 @@ class HtmlAudioPlayer {
|
||||
let val = options.url;
|
||||
console.debug('playing url: ' + val);
|
||||
import('../../scripts/settings/userSettings').then((userSettings) => {
|
||||
console.debug(userSettings.selectAudioNormalization());
|
||||
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 trackgain');
|
||||
console.debug('Using track gain');
|
||||
} else if (userSettings.selectAudioNormalization() == 'AlbumGain' && options.item.LUFSAlbum != null) {
|
||||
const dbGain = -18 - options.item.LUFSAlbum;
|
||||
self.gainNode.gain.value = Math.pow(10, (dbGain / 20));
|
||||
console.debug('using albumgain');
|
||||
console.debug('Using album gain');
|
||||
} else {
|
||||
self.gainNode.gain.value = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user