# Unit 4 Lesson 1-3 - why does sound have to be included in Scene?

**URL:** <https://forum.code.org/t/unit-4-lesson-1-3-why-does-sound-have-to-be-included-in-scene/37354>\
**Category:** General Curriculum Discussion\
**Created:** [December 9, 2022, 4:06pm UTC](https://forum.code.org/t/unit-4-lesson-1-3-why-does-sound-have-to-be-included-in-scene/37354 "2022-12-09T16:06:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jranta](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@jranta](https://forum.code.org/u/jranta)\
**Post date:** [December 9, 2022, 4:06pm UTC](https://forum.code.org/t/unit-4-lesson-1-3-why-does-sound-have-to-be-included-in-scene/37354/1 "2022-12-09T16:06:45Z")

</div>

I’ve been working on the Unit 4 lesson 1 - 3 exercise. I chose the Sports option. The only way my animation of sports ball images will be displayed is if I have a playSound() method in my drawSporty() method (which is pretty much identical to the drawEmoji() method in lesson 2). If no playSound(), everything compiles and runs, but nothing is displayed in the Theater. Why? I’ve read through the documentation for Theater and Scene, and I don’t see any requirement for a sound. I can’t figure it out. Thanks, jr

---

<div class="post-metadata">

**Author:** ![jeff.rhodes](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jeff.rhodes/32/7758_2.png) [@jeff.rhodes](https://forum.code.org/u/jeff.rhodes)\
**Post date:** [December 9, 2022, 4:42pm UTC](https://forum.code.org/t/unit-4-lesson-1-3-why-does-sound-have-to-be-included-in-scene/37354/2 "2022-12-09T16:42:44Z")

</div>

Could you share your project? Might be easier to find the issue if we can look through it!

---

<div class="post-metadata">

**Author:** ![jranta](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@jranta](https://forum.code.org/u/jranta)\
**Post date:** [December 9, 2022, 5:51pm UTC](https://forum.code.org/t/unit-4-lesson-1-3-why-does-sound-have-to-be-included-in-scene/37354/3 "2022-12-09T17:51:10Z")

</div>

I just tried the same code on a Windows machine using Chrome (was using a Mac with Safari earlier). Now if I comment out the playSound() it still displays the animation. I’m going to test it on the Mac again next period, just to see if I can replicate it.

(Previously - Can you see my session? johnranta is my login - Unit 4 lesson 1-3 (Sports option).

---

<div class="post-metadata">

**Author:** ![sam\_stafford](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/sam_stafford/32/7651_2.png) [@sam\_stafford](https://forum.code.org/u/sam_stafford)\
**Post date:** [December 11, 2022, 2:57am UTC](https://forum.code.org/t/unit-4-lesson-1-3-why-does-sound-have-to-be-included-in-scene/37354/4 "2022-12-11T02:57:51Z")

</div>

Hi @jranta, would you mind sharing your project so we can help debug? Maybe if we put a couple of eyes on it we can get to the bottom of the problem. Sounds like @jeff.rhodes might want to look at it too :).

One issue I have heard of happening is if you are using Safari some problems like yours arise. I believe Java Lab has been optimized for chrome.

Please let us know if you were able to replicate the problem.

- Sam

---

<div class="post-metadata">

**Author:** ![jranta](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@jranta](https://forum.code.org/u/jranta)\
**Post date:** [December 13, 2022, 1:28pm UTC](https://forum.code.org/t/unit-4-lesson-1-3-why-does-sound-have-to-be-included-in-scene/37354/5 "2022-12-13T13:28:44Z")

</div>

The problem is specific to the browser. Code runs fine (without playing a sound) in Chrome on a Windows system. Code compiles without errors but doesn’t run on a Mac using Safari, unless I play a sound in the method. jr

---

<div class="post-metadata">

**Author:** ![lindsay.davis](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/lindsay.davis/32/7632_2.png) [@lindsay.davis](https://forum.code.org/u/lindsay.davis)\
**Post date:** [December 14, 2022, 10:57pm UTC](https://forum.code.org/t/unit-4-lesson-1-3-why-does-sound-have-to-be-included-in-scene/37354/6 "2022-12-14T22:57:05Z")

</div>

I have also run into this issue with the theater- I just send a message to [support@code.org](mailto:support@code.org) to make sure they are aware.  
Best,  
Lindsay

---

<div class="post-metadata">

**Author:** ![sam\_stafford](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/sam_stafford/32/7651_2.png) [@sam\_stafford](https://forum.code.org/u/sam_stafford)\
**Post date:** [December 17, 2022, 3:08am UTC](https://forum.code.org/t/unit-4-lesson-1-3-why-does-sound-have-to-be-included-in-scene/37354/7 "2022-12-17T03:08:53Z")

</div>

Hey @jranta , @lindsay.davis reached out to support about this issue and this is what they had to say:

This is a known issue our team is aware of and they are actively working on a fix. In the meantime, our team recommends adding audio to the project to make it work. We apologize for any inconvenience and thank you for your patience while our teams work on a fix.

I personally haven’t tried adding audio but if you do let us know if this is another fix.

- Sam

---

<div class="post-metadata">

**Author:** ![jranta](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@jranta](https://forum.code.org/u/jranta)\
**Post date:** [December 17, 2022, 3:20am UTC](https://forum.code.org/t/unit-4-lesson-1-3-why-does-sound-have-to-be-included-in-scene/37354/8 "2022-12-17T03:20:17Z")

</div>

No worries. The only problem was the hour I spent figuring it out. JR
