# Cambio Evento, audio precedente rimane in background

**URL:** <https://qa.fmod.com/t/cambio-evento-audio-precedente-rimane-in-background/22163>\
**Category:** FMOD Studio\
**Tags:** unity\
**Created:** [October 7, 2024, 7:42am UTC](https://qa.fmod.com/t/cambio-evento-audio-precedente-rimane-in-background/22163 "2024-10-07T07:42:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellrise](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/hellrise/32/7326_2.png) [@hellrise](https://qa.fmod.com/u/hellrise)\
**Post date:** [October 7, 2024, 7:42am UTC](https://qa.fmod.com/t/cambio-evento-audio-precedente-rimane-in-background/22163/1 "2024-10-07T07:42:24Z")

</div>

buongiorno a tutti, mi sono creato una traccia audio 2D timeline con al suo interno varie tracce evento. Ho impostato un parametro che in base al suo valore mi determini la variazione di traccia da seguire.  
il tutto viene automatizzato in Unity al cambio scena.  
e qui il problema. la traccia relativa alla scena successiva viene caricata correttamente mentre però mi rimane attiva la traccia precedente che invece dovrebbe mutarsi seguendo l’ AHDSR datogli. Vi allego le immagini relative. Sapete darmi qualche consiglio a riguardo sul motivo e come correggere? Grazie mille in anticipo, perché io non riesco a capire dov’é l’errore.

 ![Screenshot 2024-10-07 092956](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/739c9401dbe24b81e832c9423252f2349f0e4929.jpeg)

---

<div class="post-metadata">

**Author:** ![hellrise](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/hellrise/32/7326_2.png) [@hellrise](https://qa.fmod.com/u/hellrise)\
**Post date:** [October 7, 2024, 7:46am UTC](https://qa.fmod.com/t/cambio-evento-audio-precedente-rimane-in-background/22163/2 "2024-10-07T07:46:38Z")

</div>

![Screenshot 2024-10-06 170111](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/b/b58a134ed04afae9a0b5a030495e5e84baa7734d.jpeg)

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [October 8, 2024, 9:43am UTC](https://qa.fmod.com/t/cambio-evento-audio-precedente-rimane-in-background/22163/3 "2024-10-08T09:43:58Z")

</div>

Does the issue occur when you audition the parent event in FMOD Studio, or only when playing the event in Unity?

Have you tried connecting to live update and recording a profiler session? Doing so may reveal the cause of the issue. For example, clicking the “Instances (self)” option in the profiler window’s transport bar will cause the profiler to display the number of instances of each event that are playing, making it easy to spot if there are two instances of the parent event playing instead of just one.

---

<div class="post-metadata">

**Author:** ![LucaPiccina](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@LucaPiccina](https://qa.fmod.com/u/LucaPiccina)\
**Post date:** [October 8, 2024, 4:10pm UTC](https://qa.fmod.com/t/cambio-evento-audio-precedente-rimane-in-background/22163/4 "2024-10-08T16:10:20Z")

</div>

You have to set the “Cut” property, it’s the small grey button next to the volume knob, in the master of the Event Instrument. Prego, ciao!

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [October 9, 2024, 1:18am UTC](https://qa.fmod.com/t/cambio-evento-audio-precedente-rimane-in-background/22163/5 "2024-10-09T01:18:37Z")

</div>

> [@LucaPiccina](#):
>
> You have to set the “Cut” property

That won’t help in this case. An AHDSR modulator on any property of an instrument overrides the instrument’s cut mode, and in this case there is an AHDSR moulator on the volume property of the event instrument.

---

<div class="post-metadata">

**Author:** ![LucaPiccina](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@LucaPiccina](https://qa.fmod.com/u/LucaPiccina)\
**Post date:** [October 9, 2024, 9:19am UTC](https://qa.fmod.com/t/cambio-evento-audio-precedente-rimane-in-background/22163/6 "2024-10-09T09:19:07Z")

</div>

Right Joseph, it has the same behaviour actually.  
Not sure it’s always been this way? It seems to me in older versions I had to set cut to make it sound properly, but maybe I am mistaken. Just setting the AHDSR for the nested events works fine for me anyway.

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [October 10, 2024, 2:37am UTC](https://qa.fmod.com/t/cambio-evento-audio-precedente-rimane-in-background/22163/7 "2024-10-10T02:37:45Z")

</div>

> [@LucaPiccina](#):
>
> Not sure it’s always been this way?

I can confirm that it’s always been this way.

---

<div class="post-metadata">

**Author:** ![LucaPiccina](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@LucaPiccina](https://qa.fmod.com/u/LucaPiccina)\
**Post date:** [October 11, 2024, 8:19am UTC](https://qa.fmod.com/t/cambio-evento-audio-precedente-rimane-in-background/22163/8 "2024-10-11T08:19:51Z")

</div>

I see, sorry my bad then!
