From 940b08742ac2f10a2e9954ae8ef781916eccc22a Mon Sep 17 00:00:00 2001 From: _Bastler <_Bastler@bstly.de> Date: Mon, 16 Aug 2021 19:37:26 +0200 Subject: [PATCH] fix audiomanager --- front/src/Components/AudioManager/AudioManager.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/front/src/Components/AudioManager/AudioManager.svelte b/front/src/Components/AudioManager/AudioManager.svelte index bd5ba3f0..b79aa22c 100644 --- a/front/src/Components/AudioManager/AudioManager.svelte +++ b/front/src/Components/AudioManager/AudioManager.svelte @@ -19,6 +19,10 @@ let decreaseWhileTalking: boolean=true; onMount(() => { + volume = localUserStore.getAudioPlayerVolume(); + audioManagerVolumeStore.setMuted(localUserStore.getAudioPlayerMuted()); + setVolume(); + unsubscriberFileStore=audioManagerFileStore.subscribe(() => { HTMLAudioPlayer.pause(); HTMLAudioPlayer.loop=get(audioManagerVolumeStore).loop;