From 97c1045b0b9abaad49db1c8d8f2a21df172b01d1 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Fri, 1 Dec 2023 00:35:35 +0900 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E9=9F=B3=E3=81=8C=E3=81=AA?= =?UTF-8?q?=E3=82=89=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=20(#116)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update sound.ts * docs(changelog): Fix: 音がならない問題 --- CHANGELOG.md | 9 +++++++++ packages/frontend/src/scripts/sound.ts | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a05eb2cf7595..7faa9c0e0977 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,15 @@ --> +## 2023.x.x (unreleased) + +### General + +### Client +- Fix: 音がならない問題 + +### Server + ## 2023.11.1-kinel.3 ### General diff --git a/packages/frontend/src/scripts/sound.ts b/packages/frontend/src/scripts/sound.ts index 81925960e9b2..fbc5911bfc20 100644 --- a/packages/frontend/src/scripts/sound.ts +++ b/packages/frontend/src/scripts/sound.ts @@ -84,7 +84,7 @@ export function play(type: 'noteMy' | 'note' | 'antenna' | 'channel' | 'notifica if (sound.type == null || !canPlay) return; canPlay = false; - playFile(sound).finally(() => { + playFile(sound.type, sound.volume).finally(() => { // ごく短時間に音が重複しないように setTimeout(() => { canPlay = true;