From 866e3f04323c70faf432a0fff6b91cb8c41de33c Mon Sep 17 00:00:00 2001 From: yutaro <20573073+yutaro@users.noreply.github.com> Date: Sat, 15 Jul 2023 10:00:03 +0900 Subject: [PATCH] fix-6096 (#11281) --- packages/frontend/src/scripts/sound.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/frontend/src/scripts/sound.ts b/packages/frontend/src/scripts/sound.ts index 7a5dd4dbf..68136cdcf 100644 --- a/packages/frontend/src/scripts/sound.ts +++ b/packages/frontend/src/scripts/sound.ts @@ -132,9 +132,7 @@ export function play(type: 'noteMy' | 'note' | 'antenna' | 'channel' | 'notifica } export function playFile(file: string, volume: number) { - const masterVolume = soundConfigStore.state.sound_masterVolume; - if (masterVolume === 0) return; - const audio = setVolume(getAudio(file), volume); + if (audio.volume === 0) return; audio.play(); }