# Switching delay Parameter

**URL:** <https://qa.fmod.com/t/switching-delay-parameter/19260>\
**Category:** FMOD Studio\
**Tags:** unity\
**Created:** [September 11, 2022, 11:01am UTC](https://qa.fmod.com/t/switching-delay-parameter/19260 "2022-09-11T11:01:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sintetic](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Sintetic](https://qa.fmod.com/u/Sintetic)\
**Post date:** [September 11, 2022, 11:01am UTC](https://qa.fmod.com/t/switching-delay-parameter/19260/1 "2022-09-11T11:01:18Z")

</div>

Created adaptive music. But when switching the parameter, to go to the next part, there is a slight delay. I.e. the parameter is already switched, but the transition occurs with a slight delay. The parameter has two values (1 and 0). In the settings of the parameter is instantaneous switching speed. In the game this is noticeable, the character made a movement, and the music has changed with a delay, it looks not very nice…What could be the problem? Or is it a bug?

---

<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 14, 2022, 5:09am UTC](https://qa.fmod.com/t/switching-delay-parameter/19260/2 "2022-09-14T05:09:22Z")

</div>

Hi,

Could I grab some info: Unity, FMOD Studio, and integration version?

Could I get a screengrab of the event and the code you are using the change the parameter? Or possibly a recording of this happening in Unity?

Thanks

---

<div class="post-metadata">

**Author:** ![Sintetic](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Sintetic](https://qa.fmod.com/u/Sintetic)\
**Post date:** [September 17, 2022, 12:16pm UTC](https://qa.fmod.com/t/switching-delay-parameter/19260/3 "2022-09-17T12:16:44Z")

</div>

this happens in fmod studio, and as a consequence also happens in the game.When I switch the parameter, the transition to the transition marker is delayed. There are no conditions for this, everything is set up for an instant transition

---

<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 20, 2022, 12:38am UTC](https://qa.fmod.com/t/switching-delay-parameter/19260/4 "2022-09-20T00:38:48Z")

</div>

There could be a couple of things happening here.  
If [Delay or Quantization](https://fmod.com/docs/2.02/studio/working-with-instruments.html#delay-and-quantization) is enabled on the audio track this will cause a pause when moving to the destination marker. You can check if this is enabled in the photo below:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/80c4a4a42332dceb25d839f3004a13f58c3acc16.png)  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/6/672def1545e018c60bef8d9cfc79f2a43c6613ac.png)

The next thing to check is if there is a little circle next to your transition maker, like in the photo below:  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/1/1bf1ac0fd90ddc31eb20219a74a0cd3645825457.png)

This means a [Transition Timeline](https://fmod.com/docs/2.02/studio/glossary.html#transition-timeline) has been enabled. If so there will be silence as the playback position moves through the timeline.

Hope this helps! If not could I get a Screen grab of the even in FMOD Studio and the version you are currently using?

---

<div class="post-metadata">

**Author:** ![Sintetic](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Sintetic](https://qa.fmod.com/u/Sintetic)\
**Post date:** [September 20, 2022, 2:48pm UTC](https://qa.fmod.com/t/switching-delay-parameter/19260/6 "2022-09-20T14:48:33Z")

</div>

Here I made a video. All delays are off, in the Off position

> **[Bug.mp4](https://drive.google.com/file/d/1DB0_4oV6tL6MuCzSzzv7P2PtLow42qy0/view?usp=sharing)**
>
> Google Drive file.

---

<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 25, 2022, 11:15pm UTC](https://qa.fmod.com/t/switching-delay-parameter/19260/7 "2022-09-25T23:15:59Z")

</div>

Thank you for the video.

What you are experiencing is a limitation of the application. The engine is preparing the sampledata at the new playback destination which takes a non-zero amount of time. Using streams anywhere in the event will also increase this delay.
