# Sound delay on Unity

**URL:** <https://qa.fmod.com/t/sound-delay-on-unity/20694>\
**Category:** Unity\
**Tags:** unity, csharp\
**Created:** [September 25, 2023, 3:39am UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694 "2023-09-25T03:39:26Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlamesEC](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@FlamesEC](https://qa.fmod.com/u/FlamesEC)\
**Post date:** [September 25, 2023, 3:39am UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/1 "2023-09-25T03:39:26Z")

</div>

Hello!

I currently play my sounds in-game by calling PlayOneShot from RuntimeManager. However, the sounds have a noticable delay once they are played. I have tried playing creating an instance of the sounds and playing that instance, but the delay is still there, (although, a little smaller). What can I do?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [September 26, 2023, 1:46am UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/2 "2023-09-26T01:46:35Z")

</div>

Hi,

Could you try enabling the `Load Bank Sample Data` ([Unity Integration | Settings - Initialization](https://fmod.com/docs/2.02/unity/settings.html#load-bank-sample-data)) which should reduce latency whenever an event is played.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/6/636038aaac63b9242542afb0acd0abda4d70751d.png)

Hope this helps.

---

<div class="post-metadata">

**Author:** ![FlamesEC](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@FlamesEC](https://qa.fmod.com/u/FlamesEC)\
**Post date:** [September 26, 2023, 10:06pm UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/3 "2023-09-26T22:06:16Z")

</div>

Nope, I tried toggling it on, but it didn’t change anything… (Building the game and executing the file doesnt change anything too, thought I’d say that).

---

<div class="post-metadata">

**Author:** ![FlamesEC](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@FlamesEC](https://qa.fmod.com/u/FlamesEC)\
**Post date:** [September 26, 2023, 10:16pm UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/4 "2023-09-26T22:16:13Z")

</div>

(Forgot to reply, @Connor_FMOD, my bad)

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [September 27, 2023, 12:08am UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/5 "2023-09-27T00:08:54Z")

</div>

Hi,

Something else to check is the loading mode you are using on the audio files: [FMOD Studio | Managing Assets - Loading Modes](https://fmod.com/docs/2.02/studio/managing-assets.html#loading-modes). Can you confirm that you are not using the `Streaming` mode as this will have the highest latency when playing.

Would it be possible to get a screenshot of the event in Studio that you are experiencing the issue with?

---

<div class="post-metadata">

**Author:** ![FlamesEC](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@FlamesEC](https://qa.fmod.com/u/FlamesEC)\
**Post date:** [September 27, 2023, 12:53am UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/6 "2023-09-27T00:53:28Z")

</div>

@Connor_FMOD, sure thing! The Asset isn’t using the Streaming mode either… (I have the entire folder on Compressed, does that matter?)

Photo of the asset itself:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/89ef11a00508018dc29c1c5fb5af3a603604e888.png)

Photo of the folder the asset is in:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/1/1f473897b19c56f01731a66adc5b77cfdf017118.png)

And photo of the Event:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/8734216cf81f7dffd1c942b6146d10ccc0681a8a.png)

---

<div class="post-metadata">

**Author:** ![FlamesEC](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@FlamesEC](https://qa.fmod.com/u/FlamesEC)\
**Post date:** [September 29, 2023, 2:16am UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/7 "2023-09-29T02:16:48Z")

</div>

@Connor_FMOD, should I try and put the folders on decompressed, or is there another setting that can cause delay so I can check whether its toggled?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [October 3, 2023, 12:13am UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/8 "2023-10-03T00:13:22Z")

</div>

Hi,

Thank you for the screenshots.

From what I can see all the settings are correct. How long is the delay that you are noticing? Are there any logs in the Unity editor that look like this:

```auto
[FMOD] EventInstance::update : Event {275351b8-616d-437c-8515-6c5cea1c1900} waited 210 milliseconds for sample data to load. Preload sample data to avoid this delay.

```

Would it be possible to get the built banks including the event that you are noticing the delay [uploaded](https://fmod.com/profile#uploads) to your [profile](https://fmod.com/profile) so I can test on my side? Please note you will have to [register](https://fmod.com/profile#register) a project with us to be able to upload.

---

<div class="post-metadata">

**Author:** ![FlamesEC](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@FlamesEC](https://qa.fmod.com/u/FlamesEC)\
**Post date:** [October 3, 2023, 2:45am UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/9 "2023-10-03T02:45:49Z")

</div>

Hello @Connor_FMOD! There arent any logs that look like that, no… And I tried uploading the profile but it says I cant because am a hobbyist? (Non commercial / hobbyists do not need to register a project. See [EULA](https://fmod.com/legal) for free license.), thanks again!

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/3/3cb721d6484f3765dee5a872d16ccf3775bebda6.png)

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [October 4, 2023, 5:07am UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/10 "2023-10-04T05:07:18Z")

</div>

Hi,

Could you try again for me? We have changed it on our side. Thanks

---

<div class="post-metadata">

**Author:** ![FlamesEC](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@FlamesEC](https://qa.fmod.com/u/FlamesEC)\
**Post date:** [October 4, 2023, 5:34am UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/11 "2023-10-04T05:34:07Z")

</div>

Hello @Connor_FMOD, I still cant upload a registration… should I change my account type temporarily just for this? Thank you!

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/6/6f8c78c83a868376c9a9e90ea04d01ce31879883.png)

---

<div class="post-metadata">

**Author:** ![FlamesEC](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@FlamesEC](https://qa.fmod.com/u/FlamesEC)\
**Post date:** [October 5, 2023, 6:44am UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/12 "2023-10-05T06:44:07Z")

</div>

Update @Connor_FMOD! Uhhhh, weirdly enough, the build is working fine now? The instanced sound is the one delaying now, which I consider extremely weird, Ill make it one shot again and see how it goes. Thank you for your help up to this point though! (It probably began working after the first fix attempt and I just never tested the build or something? I dont know).

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [October 5, 2023, 10:42pm UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/13 "2023-10-05T22:42:50Z")

</div>

That would make sense as loading the sample data would be the best solution to the issue. If you do have any other issues please do not hesitate to post again.

---

<div class="post-metadata">

**Author:** ![FlamesEC](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@FlamesEC](https://qa.fmod.com/u/FlamesEC)\
**Post date:** [October 6, 2023, 1:13am UTC](https://qa.fmod.com/t/sound-delay-on-unity/20694/14 "2023-10-06T01:13:55Z")

</div>

Will do! Thank you @Connor_FMOD :D!
