Remove Audio Library

Hi, I am getting an audio error when using P5 in chrome.

p5 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.

I understand why I’m getting the error.

I am not using any audio in my sketch, can I remove the offending library / code?



Normally you wouldn’t see this error unless you were actually using something from p5.sound. It is generally a harmless error, but if your editor has automatically included this add-on and you aren’t using it you can definitely remove the <script> tag for p5.sound from your index.html (I believe includes this add-on automatically).

Thanks @KumuPaul that worked perfectly.