+ 1
Why isn't my playSound() working properly?
It works when called in start() but doesn't works elsewhere. I am using web audio api's oscillator to make sound. https://code.sololearn.com/WBOm4adsUrE1/?ref=app
1 Réponse
+ 1
you need the time it start playing + duration
this.o.stop(audioCtx.currentTime+this.duration)