# Bug on stopping the Audio?

**URL:** https://community.thunkable.com/t/bug-on-stopping-the-audio/2243950
**Category:** Issues / Bugs
**Created:** [January 27, 2023, 11:14am UTC](https://community.thunkable.com/t/bug-on-stopping-the-audio/2243950 "2023-01-27T11:14:33Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)
#### Post date: [January 27, 2023, 11:14am UTC](https://community.thunkable.com/t/bug-on-stopping-the-audio/2243950/1 "2023-01-27T11:14:33Z")

</div>

Hi there,

posting here a little bug (i think) hope it’s helpful for the community and it gets fixed soon.

On opening the screen an audio comes an plays correctly  
When i click a button to stop it and to go to another screen it doesn’t work, here are my relevant blocks:

![thunkable_support](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/c/dce99f6b71c0cb27d0f62ff542377ce639855d46.png)

On the click of “Red”, the audio doesn’t stop, but it goes to the another screen and it sets the variable.

What i have already tried:

- Collocate the set.variable and navigate.screen under the “Then do” section

This generates a different error, the audio stops but i need to click the button twice in order to proceed with the other 2 commands (set.variable and navigate.screen)

- Reverse the order of the blocks, collocating at first set.variable and navigate.screen

This allows to go to the other screen but it won’t stop the audio

- Tried to do a Function including set.variable and navigate.screen

As result, it doesn’t work either

Any help would be very much appreciated

Thank you very much!

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [January 27, 2023, 5:02pm UTC](https://community.thunkable.com/t/bug-on-stopping-the-audio/2243950/2 "2023-01-27T17:02:53Z")

</div>

What are you initially setting the variable `BackgroundColour` to? Just setting up blocks the same as what you have above, I am unable to replicate the issue with the sound not stopping upon clicking the button.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [January 27, 2023, 5:04pm UTC](https://community.thunkable.com/t/bug-on-stopping-the-audio/2243950/3 "2023-01-27T17:04:16Z")

</div>

Audio can be a little tricky\* in Thunkable.

One thing to change is to put the `set variable` and `navigate to` blocks _inside_ the “then do” section of the `call sound` block. Because those function call blocks do not pause the code. So when you stack them on top of each other like you’ve done, the set variable block happens essentially at the same time as the `call sound` block and then the navigate block fires immediately after that. To force those two blocks to fire _after_ the sound stops, put them in the “then do” section.

\*See this list of bugs: [Issues · thunkable/thunkable-issues · GitHub](https://github.com/thunkable/thunkable-issues/issues?q=is%3Aissue+is%3Aopen+sound+), especially [this one.](https://github.com/thunkable/thunkable-issues/issues/1233)

---

<div class="post-metadata">

### Author: ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)
#### Post date: [January 28, 2023, 1:48pm UTC](https://community.thunkable.com/t/bug-on-stopping-the-audio/2243950/4 "2023-01-28T13:48:52Z")

</div>

The Background is a variable that is stored for being used in the next screen, the value is a common image from cloudinary.

Hopefully i answered to your question

---

<div class="post-metadata">

### Author: ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)
#### Post date: [January 29, 2023, 11:00am UTC](https://community.thunkable.com/t/bug-on-stopping-the-audio/2243950/5 "2023-01-29T11:00:13Z")

</div>

Hi tatiang,

thank you for your kind reply.  
As I mentioned i tried your solution but it didn’t work:

> What i have already tried:
> 
> - Collocate the set.variable and navigate.screen under the “Then do” section
> 
> This generates a different error, the audio stops but i need to click the button twice in order to proceed with the other 2 commands (set.variable and navigate.screen)

So i assume this is a known beahavior

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [January 30, 2023, 2:28pm UTC](https://community.thunkable.com/t/bug-on-stopping-the-audio/2243950/6 "2023-01-30T14:28:20Z")

</div>

@maurizio.polverini89 Can you post the URL of this project? I have tried creating one as identical as possible to yours but am not having this issue with the sound. Thank you!

---

<div class="post-metadata">

### Author: ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)
#### Post date: [January 31, 2023, 1:23pm UTC](https://community.thunkable.com/t/bug-on-stopping-the-audio/2243950/7 "2023-01-31T13:23:27Z")

</div>

Thank you very much indeed.

This is the URL of the shared project (without api keys)  
[https://x.thunkable.com/copy/a0fda89eca8d783d7ec824a5d4ee0265](https://x.thunkable.com/copy/a0fda89eca8d783d7ec824a5d4ee0265)

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:37pm UTC](https://community.thunkable.com/t/bug-on-stopping-the-audio/2243950/8 "2024-11-08T13:37:08Z")

</div>


