# Don't know how to stop an audio event!

**URL:** https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199
**Category:** Unreal Engine
**Created:** [August 28, 2022, 10:38pm UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199 "2022-08-28T22:38:51Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Mole](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Mole](https://qa.fmod.com/u/Mole)
#### Post date: [August 28, 2022, 10:38pm UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/1 "2022-08-28T22:38:51Z")

</div>

Hi everyone!  
I’m sorry to bother you with such a noob question but I’ve been working on this all day and I couldn’t find any clues…  
So here is the situation : I’m working with FMOD 2 and Unreal 4. I’ve created a Scatterer instrument that triggers with a collision box. When the player goes out of the collision box, I’d like the Scatterer instrument to stop playing…  
I’ve tried many things today but I couldn’t find any lead. My very simple blueprint looks like this :

 ![Capture d’écran 2022-08-29 003528](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/1/10389b5fee79cb62a18f7d820f9c099104f19345.png)

I’ve tried with a boolean too…I’ve changed the Scatterer instrument to a multi-instrument but nothing worked so far!

That must be a really noob question but the truth is that I am a noob!  
Could someone tell me what I don’t do right?

Thanks in advance!

Mole

---

<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: [August 29, 2022, 4:44am UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/2 "2022-08-29T04:44:26Z")

</div>

You would want to call stop on the event instance returned by `Play Event 2D` in this situation, i.e  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/5/5cf7b1f23b7f99643b44fb9ef56ffbaacaf97ac8.png)

---

<div class="post-metadata">

### Author: ![Mole](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Mole](https://qa.fmod.com/u/Mole)
#### Post date: [August 29, 2022, 7:31am UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/3 "2022-08-29T07:31:17Z")

</div>

Hi Jeff!  
Thank you very much for the reply! Indeed, I learn today that I really need to be careful about the “nature” of what is returned by the function…I’ll be more careful next time!  
I learn as well that when an event is played, an “instance” of the event is created and if I want to act on it, I must call the “instances” functions…  
So potentially, I could call, let’s say, 3 “Play event 2D function” in the same Blueprint and they would return different instances of the sound…Which I could then manipulate individually…Am I correct?!

One last question : I don’t really understand the Stop function then…When would that be used?

Many thanks again!!

---

<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: [August 29, 2022, 11:18pm UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/4 "2022-08-29T23:18:26Z")

</div>

> [@Mole](#):
>
> So potentially, I could call, let’s say, 3 “Play event 2D function” in the same Blueprint and they would return different instances of the sound…Which I could then manipulate individually…Am I correct?!

That is correct.

> [@Mole](#):
>
> I don’t really understand the Stop function then…When would that be used?

An `FMOD Audio Component` is a separate, higher level entity to an `Event Instance`. When you drag in an `FMOD Ambient Sound` into your scene from the Content Browser for example, you can see in the Details pane that it has an `FMOD Audio Component` attached:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/c/ce619b61c8fa0fa33f0c143860dbc17ba7bc8b0e.png)

If you had a reference to that in your blueprint you would call `Stop` on that. Alternatively you can add an `FMOD Audio Component` using the [`Add Audio Component`](https://fmod.com/docs/2.02/unreal/blueprint-reference-component.html#add-audio-component) node and manipulate the returned `FMOD Audio Component`.

---

<div class="post-metadata">

### Author: ![ninjadare](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@ninjadare](https://qa.fmod.com/u/ninjadare)
#### Post date: [February 9, 2024, 12:39am UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/5 "2024-02-09T00:39:28Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/b/b3b367f0435f089e9e16ce1e8c6e8197f6f3e59e.jpeg)  
Just adding on to this thread cause my event isn’t stopping like expected either  
To explain, the yellow nodes are supposed to stop the “Birds” event when the switch is hit. I know the switch is being hit because the Print Text node is triggering. I am pretty sure this is how I’ve always done it, and this thread reinforced that idea, but the audio continues to play after it shouldn’t

The forum isn’t letting me add more than one image since I’m a new user I guess so I can provide an image of FMOD in a reply

---

<div class="post-metadata">

### Author: ![ninjadare](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@ninjadare](https://qa.fmod.com/u/ninjadare)
#### Post date: [February 9, 2024, 12:41am UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/6 "2024-02-09T00:41:06Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/5/5fa35e79e4d8bdc7692ac4a60ed24ff5067011e9.png)  
An image of the event in FMOD

---

<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: [February 15, 2024, 12:04am UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/7 "2024-02-15T00:04:26Z")

</div>

Hi,

What version of the FMOD integration are you using?

Could you add the [Event Instance Is Valid](https://fmod.com/docs/2.02/unreal/blueprint-reference-eventinstance.html#event-instance-is-valid) node:  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/b/b4dff9f822cc297eced3b47f36a03f9e8193df5e.png)  
To make sure there aren’t issues when trying to interact with the instance.

Could you also set the [Logging Level](https://fmod.com/docs/2.02/unreal/settings.html#logging-level) to `Log`

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/7b7d9e9c3a20c20b4b69168c43484175d77a7057.png)  
And let me know if there are any errors in the console?

---

<div class="post-metadata">

### Author: ![AndrewHCC](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@AndrewHCC](https://qa.fmod.com/u/AndrewHCC)
#### Post date: [March 13, 2024, 10:45pm UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/8 "2024-03-13T22:45:51Z")

</div>

I have a similar issue. I’ve checked and it is returning true when the event is playing. I’ve been researching this and can’t find anything about it, the sound simply won’t stop playing.

I’ve seen people mentioning setting a trigger condition of “not stopping” to the instrument itself, I tried it and it did nothing.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/0/04851a49054e0be9124cb98df2bac1398a50279e.png)

Thanks!

---

<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: [March 14, 2024, 3:29am UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/9 "2024-03-14T03:29:35Z")

</div>

Hi,

Do you see any errors logged in the console?

---

<div class="post-metadata">

### Author: ![AndrewHCC](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@AndrewHCC](https://qa.fmod.com/u/AndrewHCC)
#### Post date: [March 14, 2024, 4:01am UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/10 "2024-03-14T04:01:23Z")

</div>

Not when the event is meant to be stopping. If I keep retriggering it, it gives me the “LogFMOD: Warning: d:\jk\workspace\Build\_\_2.2\_\_Unreal\_Win\core\_api\src\fmod\_systemi\_update.cpp(577) - Channel 0x63600009 Stolen with audibility 0.447047”

Otherwise, no errors.

---

<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: [March 14, 2024, 5:24am UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/11 "2024-03-14T05:24:19Z")

</div>

Hi,

Thanks for the info.

Could you add the [Event Instance Is Valid](https://fmod.com/docs/2.02/unreal/blueprint-reference-eventinstance.html#event-instance-is-valid) node before the stop node:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/f/f821bd25ebe1c5f93f5eba72f75002181f6b8505.png)  
To make sure that there isn’t an issue with the instance that is being referenced.

Is there any level loading happening between the event being played and stopped?

---

<div class="post-metadata">

### Author: ![AndrewHCC](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@AndrewHCC](https://qa.fmod.com/u/AndrewHCC)
#### Post date: [March 14, 2024, 11:55pm UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/12 "2024-03-14T23:55:43Z")

</div>

Hey, thank you for all your help. First of all, I did what you mentioned, and the Event Instance returned valid. However, I seem to have found a workaround for this issue.  
I’m not entirely sure why this is the case, but it seems to be caused by triggering the sound using the “Triggered” node of the Enhanced Input system. Right now I have all my logic for the Action running on triggered, and simply put the sound to start on the “Started” node, and this fixed. Maybe it’s how the action gets processed by triggered that makes it so you can’t interrupt the flow? Maybe it’s another node I had somewhere that was causing issues? Here’s what I have now, and it’s working fine.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/87c7bcd40e2b5e06c0a9723708496e53f8f8735a.png)

But again, I really appreciate your help.

Here’s an image of the full Action’s blueprint, in case you want to have a look and see if you can figure out what was causing the issue (or if someone else runs into a similar issue).

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/3/3ecc8c1aa64062aa6192b13c7dc3a160eea5f876.png)

---

<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: [March 15, 2024, 5:57am UTC](https://qa.fmod.com/t/dont-know-how-to-stop-an-audio-event/19199/13 "2024-03-15T05:57:46Z")

</div>

Hi,

Thank you for sharing the solution.

I will continue to investigate why this is an issue. If there are any updates I will post them here.
