# Want event to play in full before the next triggered event instance begins?

**URL:** <https://qa.fmod.com/t/want-event-to-play-in-full-before-the-next-triggered-event-instance-begins/21981>\
**Category:** FMOD Studio\
**Tags:** unity, csharp\
**Created:** [August 8, 2024, 5:32pm UTC](https://qa.fmod.com/t/want-event-to-play-in-full-before-the-next-triggered-event-instance-begins/21981 "2024-08-08T17:32:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SiobhanBD](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@SiobhanBD](https://qa.fmod.com/u/SiobhanBD)\
**Post date:** [August 8, 2024, 5:32pm UTC](https://qa.fmod.com/t/want-event-to-play-in-full-before-the-next-triggered-event-instance-begins/21981/1 "2024-08-08T17:32:30Z")

</div>

I’m trying to figure out how to let the last FMOD instance play in full before transitioning to the next event straight away. Currently, the events are interrupting each other and crossfading too early. Is this an issue with my code? Possibly my FMOD studio set up?

the script in question:

> **[using System;using System.Collections;using System.Collections.Generic;usi -...](https://pastebin.com/AMhbAF3T)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [August 12, 2024, 3:10am UTC](https://qa.fmod.com/t/want-event-to-play-in-full-before-the-next-triggered-event-instance-begins/21981/2 "2024-08-12T03:10:59Z")

</div>

Hi,

Based on a cursory look at your script, the issue may be that you’re only checking whether your events are in `FMOD_STUDIO_PLAYBACK_PLAYING` instead of including `FMOD_STUDIO_PLAYBACK_STOPPING` in that check, or explicitly checking for `FMOD_STUDIO_PLAYBACK_STOPPED`. Depending on how your events are set up, it’s entirely possible for them to be in the `STOPPING` state while still emitting audio, which could explain the interruption you’re observing.

That said, it’s difficult to exactly diagnose the problem without more information how you have your events are set up in Studio. Could I get you to describe the intended behavior in more detail, and explain how you’ve set up your events? Screenshots or video explaining/demonstrating the behavior would also be helpful in helping me understand what exactly you’re trying to accomplish.
