# Sound error - not constant sound

**URL:** <https://community.thunkable.com/t/sound-error-not-constant-sound/338791>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [November 26, 2019, 2:56pm UTC](https://community.thunkable.com/t/sound-error-not-constant-sound/338791 "2019-11-26T14:56:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![k010457832792au6w](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@k010457832792au6w](https://community.thunkable.com/u/k010457832792au6w)\
**Post date:** [November 26, 2019, 2:56pm UTC](https://community.thunkable.com/t/sound-error-not-constant-sound/338791/1 "2019-11-26T14:56:01Z")

</div>

Hello Thunkable

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/8/8870ebc6269e9345fa167e4327d4f9bd39d33f79.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/2/22cd74a41edd78752d38279371cf77b9810c6de2.png)

i want to make a metronome.

but when i click the start button, the sound’s beat not constant.

do you know why is it happen?

Thank you.

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [November 26, 2019, 3:19pm UTC](https://community.thunkable.com/t/sound-error-not-constant-sound/338791/2 "2019-11-26T15:19:19Z")

</div>

Playing a sound involves the Thunkable app to issue a request to the operating system to play the sound using the driver. There is no guarantee that the request to start the sound will be done with a constant delay from request to playback, since those operations are asynchronous. It is like mailing a letter, you will know it will get there, you will know it will get there before a certain time, but that time can vary.

---

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [November 26, 2019, 4:00pm UTC](https://community.thunkable.com/t/sound-error-not-constant-sound/338791/3 "2019-11-26T16:00:49Z")

</div>

Hi there,

This is what I would recommend for blocks to make a sound play on a loop:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/5/c5b10aa0f9a20059f850b2c6126c703954eb343a.png)

It will still be the case that there is a small gap between the sound ending and the new sound starting.

Have you tried getting a sound that is a single ‘click’ and playing it on repeat with a ‘wait seconds’ block between loops? (The amount of seconds can be less than 1 if expressed as a decimel). It could be easier to make an app that compensates for the delay that way.

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [November 26, 2019, 4:18pm UTC](https://community.thunkable.com/t/sound-error-not-constant-sound/338791/4 "2019-11-26T16:18:33Z")

</div>

> [@jane](#):
>
> sound play on a loop

“Recursive Function” 🤓  
This thing helps a lot 👍

Thanks! 😊

---

<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, 11:46am UTC](https://community.thunkable.com/t/sound-error-not-constant-sound/338791/5 "2024-11-08T11:46:35Z")

</div>


