L
L
Lecturer2020-01-19 23:40:37
JavaScript
Lecturer, 2020-01-19 23:40:37

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

1 answer(s)
S
sashabeep, 2020-01-19
@lecturer_82

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question