I am currently making a game in Javascript but when trying to shoot, the shooting sound doesn't restart. My HTML looks like this:
<embed id="playerShot" src="resources/sounds/ump45shot.mp3" hidden="true" autostart="false"loop="false" volume="20">
My Javascript function is
function shoot() {
document.getElementById("playerShot").Play();
}
Is there any way to restart the sound before playing it again?