Reset currentTime Before Replay
Reset audio currentTime before replay to allow rapid triggering.
Incorrect (won't replay if playing):
function playSound() {
audio.play();
}Correct (reset before play):
function playSound() {
audio.currentTime = 0;
audio.play();
}