[Audio] Force AudioContext on for current and future users
This commit is contained in:
parent
9b47a523be
commit
a09127a826
3 changed files with 5 additions and 10 deletions
|
@ -240,7 +240,7 @@ export class Store {
|
||||||
"NowPlaying": "true"
|
"NowPlaying": "true"
|
||||||
},
|
},
|
||||||
"advanced": {
|
"advanced": {
|
||||||
"AudioContext": false,
|
"AudioContext": true,
|
||||||
"experiments": [],
|
"experiments": [],
|
||||||
"playlistTrackMapping": true,
|
"playlistTrackMapping": true,
|
||||||
"ffmpegLocation": ""
|
"ffmpegLocation": ""
|
||||||
|
|
|
@ -21,10 +21,11 @@ window.wsapi = wsapi
|
||||||
app.$mount("#app")
|
app.$mount("#app")
|
||||||
|
|
||||||
// Init CiderAudio
|
// Init CiderAudio
|
||||||
if (app.cfg.advanced.AudioContext){
|
if (app.cfg.advanced.AudioContext === false){
|
||||||
CiderAudio.init()
|
app.cfg.advanced.AudioContext === true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CiderAudio.init()
|
||||||
// Import gamepad support
|
// Import gamepad support
|
||||||
app.simulateGamepad = simulateGamepad
|
app.simulateGamepad = simulateGamepad
|
||||||
app.spawnMica = spawnMica
|
app.spawnMica = spawnMica
|
||||||
|
|
|
@ -292,7 +292,7 @@
|
||||||
<div class="md-option-segment md-option-segment_auto">
|
<div class="md-option-segment md-option-segment_auto">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" v-model="app.cfg.advanced.AudioContext"
|
<input type="checkbox" v-model="app.cfg.advanced.AudioContext"
|
||||||
v-on:change="toggleAudioContext"
|
v-on:change="toggleAudioContext" :disabled="app.cfg.advanced.AudioContext === true"
|
||||||
switch/>
|
switch/>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1445,9 +1445,6 @@
|
||||||
if (app.cfg.audio.normalization === true) {
|
if (app.cfg.audio.normalization === true) {
|
||||||
CiderAudio.normalizerOn()
|
CiderAudio.normalizerOn()
|
||||||
}
|
}
|
||||||
if (app.cfg.audio.maikiwiAudio.spatial === true) {
|
|
||||||
CiderAudio.hierarchical_loading();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
@ -1455,9 +1452,6 @@
|
||||||
if (app.cfg.audio.normalization === true) {
|
if (app.cfg.audio.normalization === true) {
|
||||||
CiderAudio.normalizerOn()
|
CiderAudio.normalizerOn()
|
||||||
}
|
}
|
||||||
if (app.cfg.audio.maikiwiAudio.spatial === true) {
|
|
||||||
CiderAudio.hierarchical_loading();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
CiderAudio.off();
|
CiderAudio.off();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue