# Looping sound pops on stop()

**URL:** https://qa.fmod.com/t/looping-sound-pops-on-stop/15496
**Category:** FMOD Engine
**Created:** [February 27, 2020, 1:21pm UTC](https://qa.fmod.com/t/looping-sound-pops-on-stop/15496 "2020-02-27T13:21:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Eendhoorn](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/eendhoorn/32/890_2.png) [@Eendhoorn](https://qa.fmod.com/u/Eendhoorn)
#### Post date: [February 27, 2020, 1:21pm UTC](https://qa.fmod.com/t/looping-sound-pops-on-stop/15496/1 "2020-02-27T13:21:14Z")

</div>

Hi,

I recently started using FMOD and it’s great!  
I have a looping sound, it seems to “pop” whenever I call stop(). However, this is no bug in FMOD as it also happens with the sample in kontakt. So assume the problem is with the sample itself.

Issue in kontakt:

> <https://twitter.com/EendhoornGames/status/1232688567190728704?s=20>

Issue in game:

> <https://twitter.com/EendhoornGames/status/1232209619654774784?s=20>

Looking at the looping points, they start and end on 0 so I’m not quite sure why there is a pop.  
Anyone can point me at the right direction?

---

<div class="post-metadata">

### Author: ![Yuwee](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@Yuwee](https://qa.fmod.com/u/Yuwee)
#### Post date: [February 27, 2020, 4:08pm UTC](https://qa.fmod.com/t/looping-sound-pops-on-stop/15496/2 "2020-02-27T16:08:24Z")

</div>

Try adding an ADSHR Modulator on the volume of the master track and tweaking the attack and release values in Fmod !

---

<div class="post-metadata">

### Author: ![Eendhoorn](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/eendhoorn/32/890_2.png) [@Eendhoorn](https://qa.fmod.com/u/Eendhoorn)
#### Post date: [February 27, 2020, 4:19pm UTC](https://qa.fmod.com/t/looping-sound-pops-on-stop/15496/3 "2020-02-27T16:19:48Z")

</div>

Oh I’m just using the low level api, so can’t tweak anything in Fmod. I just don’t understand where the pop is coming from if the sound is ending on 0.

---

<div class="post-metadata">

### Author: ![Yuwee](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@Yuwee](https://qa.fmod.com/u/Yuwee)
#### Post date: [February 27, 2020, 4:27pm UTC](https://qa.fmod.com/t/looping-sound-pops-on-stop/15496/4 "2020-02-27T16:27:07Z")

</div>

I think what happens is that when stopping the event is abruptly ending without fading out in volume, creating a pop. I you can somehow tweak the volume to fade very quickly when stopping it should solve the issue !

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [March 5, 2020, 12:14am UTC](https://qa.fmod.com/t/looping-sound-pops-on-stop/15496/5 "2020-03-05T00:14:34Z")

</div>

Using [`Channel::setVolume`](https://fmod.com/resources/documentation-api?version=2.0&page=core-api-channelcontrol.html#channelcontrol_setvolume) to set the volume to zero just before stopping the sound should be enough to stop the popping.
