Answer the question
In order to leave comments, you need to log in
Suggest an idea for working with audio JS?
The bottom line is this: I sketched a game in native JS, when you click, an audio with one sound of a shot is launched, when you click on elements with a certain class, another audio is launched. But with fast clicks, the audio does not work until the previous one has finished playing, although it goes for a second, you can click it faster) I tried to pause before calling play, it did not help. Where did I go wrong? here is the link to Codepen: https://codepen.io/lector/pen/xxbaKWB
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question