# Unity 2.02.15 AHDSR On Event Instruments Break Async/Cut Function

**URL:** https://qa.fmod.com/t/unity-2-02-15-ahdsr-on-event-instruments-break-async-cut-function/20630
**Category:** FMOD Studio
**Tags:** unity
**Created:** [September 7, 2023, 5:01pm UTC](https://qa.fmod.com/t/unity-2-02-15-ahdsr-on-event-instruments-break-async-cut-function/20630 "2023-09-07T17:01:13Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![millertone](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/millertone/32/769_2.png) [@millertone](https://qa.fmod.com/u/millertone)
#### Post date: [September 7, 2023, 5:01pm UTC](https://qa.fmod.com/t/unity-2-02-15-ahdsr-on-event-instruments-break-async-cut-function/20630/1 "2023-09-07T17:01:13Z")

</div>

Hi Folks,  
We’ve updated from 2.02.04 to 2.02.15 and have noticed that when using Async/Cutl/Loop, events w/ an AHDSR don’t stop when the playhead passes. The ~20sec files are compressed to 2.5 seconds on the timeline, with a random offset to provide variations. The event instances are limited to 1/none, which means that an events persists the first time it’s called and can’t be called again. The AHDSR is meant to provide a fade after the cut. Removing the AHDSR fixes the issue. The workaround is to fade using automation, but it will be some effort to find all events that use this system - there are roughly 2500 events in the project.

Best, Matt

---

<div class="post-metadata">

### Author: ![millertone](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/millertone/32/769_2.png) [@millertone](https://qa.fmod.com/u/millertone)
#### Post date: [September 7, 2023, 5:09pm UTC](https://qa.fmod.com/t/unity-2-02-15-ahdsr-on-event-instruments-break-async-cut-function/20630/2 "2023-09-07T17:09:21Z")

</div>

I should add that the sound stops once the playhead passes plus the release time, even though the playhead within the instrument persists.

---

<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 10, 2023, 10:55pm UTC](https://qa.fmod.com/t/unity-2-02-15-ahdsr-on-event-instruments-break-async-cut-function/20630/3 "2023-09-10T22:55:49Z")

</div>

Hi,

Unfortunately, I was unable to reproduce this behavior. Would it be possible to get a simple project that reproduces this behavior [uploaded](https://fmod.com/profile#uploads) to your profile with the following options:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/2/23df5d0b87d6382829384a908792dece3bd02d7f.png)  
Please note you will have to [register](https://fmod.com/profile#projects) a project with us to be able to upload.

---

<div class="post-metadata">

### Author: ![millertone](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/millertone/32/769_2.png) [@millertone](https://qa.fmod.com/u/millertone)
#### Post date: [September 11, 2023, 6:00pm UTC](https://qa.fmod.com/t/unity-2-02-15-ahdsr-on-event-instruments-break-async-cut-function/20630/4 "2023-09-11T18:00:13Z")

</div>

Hi Connor,  
Thanks for the reply.

I am able to reproduce the issue by creating the project in 2.02.04 and then opening it using 2.02.15, which is our path for updating.

I’ve been told that we’re using the free Indie license, so I don’t think I can share the package via the portal. Is that correct?

Regards, Matt

---

<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 13, 2023, 2:34am UTC](https://qa.fmod.com/t/unity-2-02-15-ahdsr-on-event-instruments-break-async-cut-function/20630/5 "2023-09-13T02:34:32Z")

</div>

Hi,

Thank you for the explanation. My reproduction steps were:

1. Create a project in 2.02.04
2. Create an event with a single instrument
3. Add AHDSR and Async  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/d/ddbc7d8d83c5fbead458ece61d769ab52e2e4f90.png)  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/f/fe8cf8e65a8b845ebf26ec80eb4fa8f3481dc673.png)
4. Save the project
5. Open the project in 2.02.15

Unfortunately, I was still unable to reproduce the issue. Please let me know if any of these steps are wrong or if I am creating the event incorrectly?

In regards to the license, you are able to register projects under any license.

---

<div class="post-metadata">

### Author: ![millertone](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/millertone/32/769_2.png) [@millertone](https://qa.fmod.com/u/millertone)
#### Post date: [September 13, 2023, 2:43pm UTC](https://qa.fmod.com/t/unity-2-02-15-ahdsr-on-event-instruments-break-async-cut-function/20630/6 "2023-09-13T14:43:03Z")

</div>

Hi Connor,  
Thanks for responding with those steps. The one thing that’s wrong is that the AHDSR needs to be connected to the Instrument, as opposed to the track or master, otherwise the release stage of the envelope doesn’t work.  
Thanks, Matt

---

<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 13, 2023, 10:30pm UTC](https://qa.fmod.com/t/unity-2-02-15-ahdsr-on-event-instruments-break-async-cut-function/20630/7 "2023-09-13T22:30:42Z")

</div>

Hi,

Thanks for the clarification. I was able to reproduce the issue. Just to check, is the asset you are using streaming ([FMOD Studio | Managing Assets - Loading Modes](https://fmod.com/docs/2.02/studio/managing-assets.html#loading-modes:~:text=Streaming%20%2D%20Assets%20are,and%20background%20ambiences))? There is a known issue with streaming async instruments.

---

<div class="post-metadata">

### Author: ![millertone](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/millertone/32/769_2.png) [@millertone](https://qa.fmod.com/u/millertone)
#### Post date: [September 15, 2023, 4:32pm UTC](https://qa.fmod.com/t/unity-2-02-15-ahdsr-on-event-instruments-break-async-cut-function/20630/8 "2023-09-15T16:32:08Z")

</div>

Hi Connor,  
Yes, I am using streaming, as most of these events are ~10-20 seconds. As far as the known issues are concerned, I am using these events almost like one shots or short event instances. Is that bad practise? Again, it’s been working fine in 2.02.04.

Can this be reported as a bug based on our conversation, or do I need to submit it via the portal?

Thanks, Matt

---

<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 17, 2023, 10:23pm UTC](https://qa.fmod.com/t/unity-2-02-15-ahdsr-on-event-instruments-break-async-cut-function/20630/9 "2023-09-17T22:23:35Z")

</div>

Hi,

Thank you for the clarification.

> [@millertone](#):
>
> Can this be reported as a bug

This is a known issue with streaming assets that will be solved in the next release.

> [@millertone](#):
>
> Is that bad practise?

Yes, the `Loading Mode -> Steaming` should be used for longer assets like music or background ambiance as most platforms can only support a single-digit number of simultaneously playing streams. If these are short one-shot events an option may be enabling `Load Bank Sample Data` in the integration settings: [Unity Integration | Settings - Load Bank Sample Data](https://fmod.com/docs/2.02/unity/settings.html#load-bank-sample-data).

Thank you for bringing this to our attention, and if there is anything I can assist with please let me know.
