fixed
This commit is contained in:
parent
9db85b5823
commit
42781b79c7
2 changed files with 3 additions and 4 deletions
|
@ -164,11 +164,11 @@ var CiderAudio = {
|
||||||
if (app.cfg.audio.spatial) {
|
if (app.cfg.audio.spatial) {
|
||||||
try{
|
try{
|
||||||
CiderAudio.audioNodes.spatialNode.output.disconnect(CiderAudio.context.destination); } catch(e){}
|
CiderAudio.audioNodes.spatialNode.output.disconnect(CiderAudio.context.destination); } catch(e){}
|
||||||
CiderAudio.audioNodes.spatialNode.output.connect(CiderAudio.audioNodes.llpw);
|
CiderAudio.audioNodes.spatialNode.output.connect(CiderAudio.audioNodes.llpw[0]);
|
||||||
} else {
|
} else {
|
||||||
try{
|
try{
|
||||||
CiderAudio.audioNodes.gainNode.disconnect(CiderAudio.context.destination);} catch(e){}
|
CiderAudio.audioNodes.gainNode.disconnect(CiderAudio.context.destination);} catch(e){}
|
||||||
CiderAudio.audioNodes.gainNode.connect(CiderAudio.audioNodes.llpw);
|
CiderAudio.audioNodes.gainNode.connect(CiderAudio.audioNodes.llpw[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 1; i < LLPW_FREQUENCIES.length; i ++) {
|
for (i = 1; i < LLPW_FREQUENCIES.length; i ++) {
|
||||||
|
|
|
@ -2348,9 +2348,8 @@ const app = new Vue({
|
||||||
},
|
},
|
||||||
async losslessBadge() {
|
async losslessBadge() {
|
||||||
const songID = (this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem["_songId"] ?? -1 : -1;
|
const songID = (this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem["_songId"] ?? -1 : -1;
|
||||||
// this.getMXM( trackName, artistName, 'en', duration);
|
|
||||||
if (app.cfg.audio.quality == 2304 && app.cfg.advanced.decryptLLPW && songID != -1) {
|
if (app.cfg.audio.quality == 2304 && app.cfg.advanced.decryptLLPW && songID != -1) {
|
||||||
let extendedAssets = app.mk.api.song(songID, {extend : 'extendedAssetUrls'})
|
let extendedAssets = await app.mk.api.song(songID, {extend : 'extendedAssetUrls'})
|
||||||
if (extendedAssets.attributes.audioTraits.includes('lossless')) {
|
if (extendedAssets.attributes.audioTraits.includes('lossless')) {
|
||||||
app.mk.nowPlayingItem['attributes']['lossless'] = true
|
app.mk.nowPlayingItem['attributes']['lossless'] = true
|
||||||
CiderAudio.audioNodes.llpwEnabled = 1}
|
CiderAudio.audioNodes.llpwEnabled = 1}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue