# How add a short interval before play next time?

**URL:** https://qa.fmod.com/t/how-add-a-short-interval-before-play-next-time/14274
**Category:** FMOD Engine
**Created:** [December 24, 2018, 5:33am UTC](https://qa.fmod.com/t/how-add-a-short-interval-before-play-next-time/14274 "2018-12-24T05:33:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Russell](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@Russell](https://qa.fmod.com/u/Russell)
#### Post date: [December 24, 2018, 5:33am UTC](https://qa.fmod.com/t/how-add-a-short-interval-before-play-next-time/14274/1 "2018-12-24T05:33:18Z")

</div>

Hi.  
I want to add a short interval when a sound is playing at loop mode, is there an automatic method in low level api or should I implement it myself?  
Thanks a lot!

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [December 28, 2018, 6:25am UTC](https://qa.fmod.com/t/how-add-a-short-interval-before-play-next-time/14274/2 "2018-12-28T06:25:02Z")

</div>

Im guessing you want to pause the sound before it loops each time, FMOD does not do that as a loop feature, but you can queue up sounds with sample precision and the setDelay function. You could call playsound/setdelay many times up front to queue a bunch of sounds.

There is an example already that does this - see gapless playback example.

Where it says

```
            clock_start += slen; /* Place the sound clock start time to this value after the last one. */

```

This could just have the gap inserted with

```
        clock_start += gapsize_samples; /* Add a gap */
```
