# Quiz with sounds and navigation bar (loading sounds)

**URL:** <https://discourse.processing.org/t/quiz-with-sounds-and-navigation-bar-loading-sounds/40923>\
**Category:** Libraries\
**Tags:** homework\
**Created:** [February 14, 2023, 2:34pm UTC](https://discourse.processing.org/t/quiz-with-sounds-and-navigation-bar-loading-sounds/40923 "2023-02-14T14:34:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iinnessic](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@iinnessic](https://discourse.processing.org/u/iinnessic)\
**Post date:** [February 14, 2023, 2:34pm UTC](https://discourse.processing.org/t/quiz-with-sounds-and-navigation-bar-loading-sounds/40923/1 "2023-02-14T14:34:05Z")

</div>

Hi! So I have this Quiz about a solar cell I need to program. I have a few minor problems, but what really stresses me out right now, is that my code does not work when I import too many sounds… What can I do?

These are all the sounds I want to import:  
intro = new SoundFile(this, “Intro.wav”);  
S1 = new SoundFile(this, “S1.wav”);  
S2 = new SoundFile(this, “S2.wav”);  
S3 = new SoundFile(this, “S3.wav”);  
S4 = new SoundFile(this, “S4.wav”);  
S5 = new SoundFile(this, “S5.wav”);  
S6 = new SoundFile(this, “S6.wav”);  
S7 = new SoundFile(this, “S7.wav”);  
S8Ende = new SoundFile(this, “S8Ende.wav”);

Is that too much?

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [February 14, 2023, 4:40pm UTC](https://discourse.processing.org/t/quiz-with-sounds-and-navigation-bar-loading-sounds/40923/2 "2023-02-14T16:40:57Z")

</div>

Hi @iinnessic,

> [@iinnessic](#):
>
> but what really stresses me out right now, is that my code does not work when I import too many sounds

Seems not too much, at least if that are only sound effects and not huge sound files…

What exactly happens (ie error message) ?

Cheers  
— mnse

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [February 14, 2023, 9:01pm UTC](https://discourse.processing.org/t/quiz-with-sounds-and-navigation-bar-loading-sounds/40923/3 "2023-02-14T21:01:23Z")

</div>

Where do you do this? Before setup or in setup or in draw?

In preferences you can increase the memory size
