# 3d gunshot randomly saturate when at certain distance

**URL:** https://qa.fmod.com/t/3d-gunshot-randomly-saturate-when-at-certain-distance/19350
**Category:** FMOD Engine
**Tags:** cpp
**Created:** [October 1, 2022, 9:46am UTC](https://qa.fmod.com/t/3d-gunshot-randomly-saturate-when-at-certain-distance/19350 "2022-10-01T09:46:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sypher](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Sypher](https://qa.fmod.com/u/Sypher)
#### Post date: [October 1, 2022, 9:46am UTC](https://qa.fmod.com/t/3d-gunshot-randomly-saturate-when-at-certain-distance/19350/1 "2022-10-01T09:46:32Z")

</div>

Hi, I started using fmod core api for my c++ engine. I have trouble with a gunshot sound from distance.  
I’have made a video to expose the problem.  
[youtube video link](https://youtu.be/Z0jEf5SFSF0)  
The firsts shots (far from listener) are randomly noisy (like the first one)  
when close to the listener, the problem never happen.

I am using FMOD\_3D\_LINEARSQUAREROLLOFF, but same issue with FMOD\_3D\_INVERSEROLLOFF

I am setting channel-\>set3DMinMaxDistance(2.f, 50.f)  
I tried playing only one sound at a time (using channel-\>stop()), but even one instance can have issue.

I don’t know what to do. Can someone help me with this?  
Please tell me if you need more infos.

Thanks

---

<div class="post-metadata">

### Author: ![Sypher](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Sypher](https://qa.fmod.com/u/Sypher)
#### Post date: [October 2, 2022, 8:48am UTC](https://qa.fmod.com/t/3d-gunshot-randomly-saturate-when-at-certain-distance/19350/2 "2022-10-02T08:48:38Z")

</div>

Okay I found the issue, I need the to create the chanel as paused, set the 3d attributes, then unpause…  
it is weird that the sound start playing without attributes, and before a call to system-\>update.
