podcast normalization

This commit is contained in:
Maikiwi 2022-03-30 18:41:23 -07:00
parent 00b9fc596d
commit c3512f07b7

View file

@ -756,6 +756,9 @@ const app = new Vue({
ipcRenderer.on('SoundCheckTag', (event, tag) => {
// let replaygain = self.parseSCTagToRG(tag)
if (app.mk.nowPlayingItem.type !== 'song') {
CiderAudio.audioNodes.gainNode.gain.value = 0.70794578438;}
else {
let soundcheck = tag.split(" ")
let numbers = []
for (let item of soundcheck) {
@ -769,7 +772,7 @@ const app = new Vue({
try {
//CiderAudio.audioNodes.gainNode.gain.value = (Math.min(Math.pow(10, (replaygain.gain / 20)), (1 / replaygain.peak)))
CiderAudio.audioNodes.gainNode.gain.value = gain
} catch (e) {
} catch (e) {}
}
})