From 3c68b4ea1a9372ff6f64abde0d5031de01dfd305 Mon Sep 17 00:00:00 2001 From: Grant Shangreaux Date: Mon, 6 Jan 2020 14:21:24 -0600 Subject: Fix: button press sound is louder now --- audio/button-press.mp3 | Bin 13895 -> 15512 bytes tape-deck.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/button-press.mp3 b/audio/button-press.mp3 index 1474d3f..91ae629 100644 Binary files a/audio/button-press.mp3 and b/audio/button-press.mp3 differ diff --git a/tape-deck.js b/tape-deck.js index 230d3c8..e0ee376 100644 --- a/tape-deck.js +++ b/tape-deck.js @@ -31,6 +31,7 @@ function loadTrackData() { function play() { if (isPlaying) { playButton.src = playButtonUp; + buttonPressSound.play(); tape.pause(); isPlaying = false; deck.src = stopImage; @@ -47,7 +48,6 @@ function play() { isPlaying = true; playButton.src = playButtonDown; - buttonPressSound.play(); deck.src = playImage; } -- cgit v1.2.3