Skip to content

Commit

Permalink
🔊 feat(audio-manager.js): reset the playback position of the jump sou…
Browse files Browse the repository at this point in the history
…nd to the beginning before playing it

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.
  • Loading branch information
romantech committed Feb 1, 2024
1 parent 4f4d16f commit fed50f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/audio-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class AudioManager {

playJumpSound() {
if (this.isMuted) return;
this.jumpSound.currentTime = 0; // 재생 위치를 처음으로 설정
this.jumpSound.play();
}

Expand Down

0 comments on commit fed50f4

Please sign in to comment.