# Processing Sound Library Errors

**URL:** https://discourse.processing.org/t/processing-sound-library-errors/27810
**Category:** Libraries
**Created:** [February 14, 2021, 3:02am UTC](https://discourse.processing.org/t/processing-sound-library-errors/27810 "2021-02-14T03:02:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![SNICKRS](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@SNICKRS](https://discourse.processing.org/u/SNICKRS)
#### Post date: [February 14, 2021, 3:02am UTC](https://discourse.processing.org/t/processing-sound-library-errors/27810/1 "2021-02-14T03:02:35Z")

</div>

Hello everyone, I was encountering some errors when using the processing sound library. The files load and play fine, but sometimes they just don’t play at all, and this happens usually 2-5 minutes after the program starts. I don’t know what is causing this nor how to fix it. Thanks in advance!

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [February 14, 2021, 2:49pm UTC](https://discourse.processing.org/t/processing-sound-library-errors/27810/2 "2021-02-14T14:49:16Z")

</div>

Hi,

Can you provide more details to your question like :

- What OS are you running Processing on?

- Which version of Processing, and the Sound library?

- How are you playing those sounds?

- What kind of sound files? (format, duration, source…)

Thanks! 🙂

---

<div class="post-metadata">

### Author: ![SNICKRS](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@SNICKRS](https://discourse.processing.org/u/SNICKRS)
#### Post date: [February 14, 2021, 5:17pm UTC](https://discourse.processing.org/t/processing-sound-library-errors/27810/3 "2021-02-14T17:17:48Z")

</div>

Hello, to anwser your questions, I am running the program on a windows 10 os, Processing 3, the processing sound library (`import processing.sound.*`), I am controlling the playing of these sounds using booleans in order to make them play only once per event, and they are .wav files, 1 second each because they are sound effects.

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [February 14, 2021, 10:35pm UTC](https://discourse.processing.org/t/processing-sound-library-errors/27810/4 "2021-02-14T22:35:55Z")

</div>

Ok thanks, can you try to give a code example where it will certainly crash? Because otherwise it’s difficult to test or see where’s the error.

Also what is the file weight of those sounds?

---

<div class="post-metadata">

### Author: ![SNICKRS](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@SNICKRS](https://discourse.processing.org/u/SNICKRS)
#### Post date: [February 15, 2021, 11:34pm UTC](https://discourse.processing.org/t/processing-sound-library-errors/27810/5 "2021-02-15T23:34:59Z")

</div>

It’s not a case where the code crashes, but where the files don’t play. For example, it would play for the first 10 or so times, but then doesn’t play on the 11th.
