# Sound in p5.js gives warnings

**URL:** <https://discourse.processing.org/t/sound-in-p5-js-gives-warnings/12731>\
**Category:** Libraries\
**Created:** [July 15, 2019, 9:13pm UTC](https://discourse.processing.org/t/sound-in-p5-js-gives-warnings/12731 "2019-07-15T21:13:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Checkers99](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@Checkers99](https://discourse.processing.org/u/Checkers99)\
**Post date:** [July 15, 2019, 9:13pm UTC](https://discourse.processing.org/t/sound-in-p5-js-gives-warnings/12731/1 "2019-07-15T21:13:48Z")

</div>

Hello,

I’m currently trying to add sound to a p5.js sketch but i keep getting these ‘warnings’?  
This is the source of the problem i think…  
If I write the preload code and loadSound I then get error codes from the p5 sound files.

Please can someone help me out?

 ![14](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/f/f1e0fcba2b08a10a99764cd9529b895460bc7781.png)

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [July 16, 2019, 12:36am UTC](https://discourse.processing.org/t/sound-in-p5-js-gives-warnings/12731/2 "2019-07-16T00:36:16Z")

</div>

> [@Cannot Create Classes](https://discourse.processing.org/t/cannot-create-classes/8756/17):
>
> AFAIK, Firefox-based browsers treat the file:// URL scheme the same way as the http:// URL scheme. fox_face Thus far I haven’t found any issues at all when running Processing sketches on Firefox under its file:// URL scheme. partying_face Firefox-based browsers use the Gecko Spidermonkey JS engine. spider But if we prefer/need to test JS on the Chrome’s Blink V8 engine instead, we can use the Vivaldi browser: musical_score Similarly to Firefox, Vivaldi doesn’t restrict the file:// …
