Hi, I’m trying to stop my audios when I click on reset button. I guess I have to point to “audio” in abstract, because I preloaded an array of audios…
https://editor.p5js.org/carpece/sketches/5NWyhBHT
Any idea?
Thanks
Hi, I’m trying to stop my audios when I click on reset button. I guess I have to point to “audio” in abstract, because I preloaded an array of audios…
https://editor.p5js.org/carpece/sketches/5NWyhBHT
Any idea?
Thanks
Hi @Carpece –
Are you trying to stock many different audio clips, or just whichever one is playing? When you click, try looping over your array and calling stop on each one.