[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
|
@ -21,10 +21,11 @@ window.wsapi = wsapi
|
|||
app.$mount("#app")
|
||||
|
||||
// Init CiderAudio
|
||||
if (app.cfg.advanced.AudioContext){
|
||||
CiderAudio.init()
|
||||
if (app.cfg.advanced.AudioContext === false){
|
||||
app.cfg.advanced.AudioContext === true;
|
||||
}
|
||||
|
||||
CiderAudio.init()
|
||||
// Import gamepad support
|
||||
app.simulateGamepad = simulateGamepad
|
||||
app.spawnMica = spawnMica
|
||||
|
|
|
@ -292,7 +292,7 @@
|
|||
<div class="md-option-segment md-option-segment_auto">
|
||||
<label>
|
||||
<input type="checkbox" v-model="app.cfg.advanced.AudioContext"
|
||||
v-on:change="toggleAudioContext"
|
||||
v-on:change="toggleAudioContext" :disabled="app.cfg.advanced.AudioContext === true"
|
||||
switch/>
|
||||
</label>
|
||||
</div>
|
||||
|
@ -1445,9 +1445,6 @@
|
|||
if (app.cfg.audio.normalization === true) {
|
||||
CiderAudio.normalizerOn()
|
||||
}
|
||||
if (app.cfg.audio.maikiwiAudio.spatial === true) {
|
||||
CiderAudio.hierarchical_loading();
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
@ -1455,9 +1452,6 @@
|
|||
if (app.cfg.audio.normalization === true) {
|
||||
CiderAudio.normalizerOn()
|
||||
}
|
||||
if (app.cfg.audio.maikiwiAudio.spatial === true) {
|
||||
CiderAudio.hierarchical_loading();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
CiderAudio.off();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue