# Bug with action sheet and silent instrument

**URL:** <https://qa.fmod.com/t/bug-with-action-sheet-and-silent-instrument/19335>\
**Category:** FMOD Studio\
**Created:** [September 29, 2022, 12:23am UTC](https://qa.fmod.com/t/bug-with-action-sheet-and-silent-instrument/19335 "2022-09-29T00:23:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [September 29, 2022, 12:23am UTC](https://qa.fmod.com/t/bug-with-action-sheet-and-silent-instrument/19335/1 "2022-09-29T00:23:44Z")

</div>

This kind of event behaves incorrectly:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/7f5e54d631cd52e3f99f972784bbc3a0f10aee76.png)  
The C action (whatever it is) happens immediately, as if the silence instrument wouldn’t exist.  
It works fine in FMOD studio, but incorrectly in game.

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [September 30, 2022, 10:41am UTC](https://qa.fmod.com/t/bug-with-action-sheet-and-silent-instrument/19335/2 "2022-09-30T10:41:21Z")

</div>

Has someone been able to replicate my bug, or would you like a file share?

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [October 3, 2022, 11:03pm UTC](https://qa.fmod.com/t/bug-with-action-sheet-and-silent-instrument/19335/3 "2022-10-03T23:03:44Z")

</div>

I hve not been able to reproduce this issue in FMOD Studio 2.02.09. What is the silence instrument’s duration and what version of FMOD Studio are you using?

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [October 4, 2022, 8:20am UTC](https://qa.fmod.com/t/bug-with-action-sheet-and-silent-instrument/19335/4 "2022-10-04T08:20:20Z")

</div>

I’m using FMOD Studio 2.02.06, in Moai 1.75.

Ok, I’ve narrowed the bug.  
I’ve tested this :  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/f/f0e7a765c9b26b6b6de82b2004a69487dbab0a1d.png)  
The 2 “flesh stab” should be heard one after another, with the silence instrument between. If you add a command instrument in-between (as I did here), with any parameter set (linked to a real existing parameter), the timing of the silence instrument is incorrect in game. For instance, in my test, 5s is reduced to 1s approximately.

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [October 4, 2022, 12:05pm UTC](https://qa.fmod.com/t/bug-with-action-sheet-and-silent-instrument/19335/5 "2022-10-04T12:05:23Z")

</div>

Our integration of FMOD in Moai is custom, and incomplete. But I have doubts how this bug could be related to this custom integration. I’ll try on EU4, though, if you’re still not able to reproduce it.

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [October 4, 2022, 10:07pm UTC](https://qa.fmod.com/t/bug-with-action-sheet-and-silent-instrument/19335/6 "2022-10-04T22:07:04Z")

</div>

I’ve tested the exact same bank in UE4 and the bug doesn’t happen (at least in the editor). This is a really strange bug. I know you can’t support custom integration like ours, but what could cause this command instrument to impact the length of the silent instrument?

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [October 4, 2022, 11:51pm UTC](https://qa.fmod.com/t/bug-with-action-sheet-and-silent-instrument/19335/7 "2022-10-04T23:51:06Z")

</div>

This sounds exactly like a bug that was fixed in **[2.02.02](https://fmod.com/docs/2.02/api/welcome-revision-history.html)**:

> Studio API - Fixed issue where silence instruments placed after a set parameter command instrument would be skipped.

Can you please confirm that your custom integration is using the latest version of the FMOD API as well?

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [October 5, 2022, 6:54am UTC](https://qa.fmod.com/t/bug-with-action-sheet-and-silent-instrument/19335/8 "2022-10-05T06:54:02Z")

</div>

Indeed, this sounds exactly like this! I will ask the dev, for the FMOD API, but I’m pretty sure he only updated to the last major version (2.02.00). Thanks!
