Normalization rework
This commit is contained in:
parent
4f441cc8b1
commit
938ab4522f
1 changed files with 18 additions and 16 deletions
|
@ -756,6 +756,7 @@ const app = new Vue({
|
||||||
|
|
||||||
ipcRenderer.on('SoundCheckTag', (event, tag) => {
|
ipcRenderer.on('SoundCheckTag', (event, tag) => {
|
||||||
// let replaygain = self.parseSCTagToRG(tag)
|
// let replaygain = self.parseSCTagToRG(tag)
|
||||||
|
try {
|
||||||
if (app.mk.nowPlayingItem.type !== 'song') {
|
if (app.mk.nowPlayingItem.type !== 'song') {
|
||||||
CiderAudio.audioNodes.gainNode.gain.value = 0.70794578438;}
|
CiderAudio.audioNodes.gainNode.gain.value = 0.70794578438;}
|
||||||
else {
|
else {
|
||||||
|
@ -774,6 +775,7 @@ const app = new Vue({
|
||||||
CiderAudio.audioNodes.gainNode.gain.value = gain
|
CiderAudio.audioNodes.gainNode.gain.value = gain
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
} catch (e) {ipcRenderer.send('SoundCheckTag', event, tag);} // brute force until it works
|
||||||
})
|
})
|
||||||
|
|
||||||
ipcRenderer.on('play', function (_event, mode, id) {
|
ipcRenderer.on('play', function (_event, mode, id) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue