fix audiomanager

This commit is contained in:
_Bastler 2021-08-16 19:37:26 +02:00
parent 1958449178
commit 940b08742a

View File

@ -19,6 +19,10 @@
let decreaseWhileTalking: boolean=true; let decreaseWhileTalking: boolean=true;
onMount(() => { onMount(() => {
volume = localUserStore.getAudioPlayerVolume();
audioManagerVolumeStore.setMuted(localUserStore.getAudioPlayerMuted());
setVolume();
unsubscriberFileStore=audioManagerFileStore.subscribe(() => { unsubscriberFileStore=audioManagerFileStore.subscribe(() => {
HTMLAudioPlayer.pause(); HTMLAudioPlayer.pause();
HTMLAudioPlayer.loop=get(audioManagerVolumeStore).loop; HTMLAudioPlayer.loop=get(audioManagerVolumeStore).loop;