From fed50f47054ac81211c95d9d030790feecd13bc9 Mon Sep 17 00:00:00 2001 From: ColorFilter <johan@romantech.net> Date: Thu, 1 Feb 2024 14:30:10 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20feat(audio-manager.js):=20reset?= =?UTF-8?q?=20the=20playback=20position=20of=20the=20jump=20sound=20to=20t?= =?UTF-8?q?he=20beginning=20before=20playing=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The change was made to ensure that the jump sound always starts playing from the beginning, regardless of its previous playback position. This improves the user experience by providing consistent audio feedback for jumps. --- src/audio-manager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/audio-manager.js b/src/audio-manager.js index 2e9968c..681c9c6 100644 --- a/src/audio-manager.js +++ b/src/audio-manager.js @@ -42,6 +42,7 @@ class AudioManager { playJumpSound() { if (this.isMuted) return; + this.jumpSound.currentTime = 0; // 재생 위치를 처음으로 설정 this.jumpSound.play(); }