# How to create sound loop

**URL:** <https://community.thunkable.com/t/how-to-create-sound-loop/3048098>\
**Category:** Questions about Thunkable X\
**Created:** [June 8, 2024, 9:53am UTC](https://community.thunkable.com/t/how-to-create-sound-loop/3048098 "2024-06-08T09:53:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![salmannawaz1724xjqj0](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/salmannawaz1724xjqj0/32/173858_2.png) [@salmannawaz1724xjqj0](https://community.thunkable.com/u/salmannawaz1724xjqj0)\
**Post date:** [June 8, 2024, 9:53am UTC](https://community.thunkable.com/t/how-to-create-sound-loop/3048098/1 "2024-06-08T09:53:26Z")

</div>

i want to add background sound to my app , when the app start the sound should start in loop, and if the user click on mute button the sound will be stop , and remine stop next time, ( i know this logic)

---

<div class="post-metadata">

**Author:** ![marion.dorsett](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/marion.dorsett/32/175129_2.png) [@marion.dorsett](https://community.thunkable.com/u/marion.dorsett)\
**Post date:** [June 8, 2024, 3:42pm UTC](https://community.thunkable.com/t/how-to-create-sound-loop/3048098/2 "2024-06-08T15:42:57Z")

</div>

The blocks can probably be refactored to flow better, but in the end this worked for me.

The key is you have to use a Timer and configure the timer to play the audio each time the audio ends.

If you want the audio loop to start when the app opens make sure the Timer is enabled. When the tiimer reaches it’s interval it will execute the blocks in the Fire event, and that’s when the audio will restart.

 ![audio-loop-00](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/a/8a1d73ed142bad4457d35f630421f93fcfadaf0e.png)  
 ![audio-loop-01](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/0/10868db0df113e09e00c11fc4a21a9c3ed489c48.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [September 6, 2024, 3:43pm UTC](https://community.thunkable.com/t/how-to-create-sound-loop/3048098/3 "2024-09-06T15:43:08Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
