# GC Alloc when playing audio via StudioEventEmitter

**URL:** <https://qa.fmod.com/t/gc-alloc-when-playing-audio-via-studioeventemitter/23623>\
**Category:** Unity\
**Tags:** unity\
**Created:** [November 11, 2025, 11:19am UTC](https://qa.fmod.com/t/gc-alloc-when-playing-audio-via-studioeventemitter/23623 "2025-11-11T11:19:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fendercodes](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fendercodes/32/2971_2.png) [@fendercodes](https://qa.fmod.com/u/fendercodes)\
**Post date:** [November 11, 2025, 11:19am UTC](https://qa.fmod.com/t/gc-alloc-when-playing-audio-via-studioeventemitter/23623/1 "2025-11-11T11:19:57Z")

</div>

There is GC allocated every time we play audio via a StudioEventEmitter which comes from `RuntimeManager.FindOrAddAttachedInstance`. For something that is called so frequently, I would think making this not allocate would be ideal (e.g. by having a pre-allocated List instead).

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

We’re kind of able to work around it by inheriting from StudioEventEmitter with our own class and avoiding using the internal logic, but that seems like a bit of a shame.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [November 17, 2025, 5:04am UTC](https://qa.fmod.com/t/gc-alloc-when-playing-audio-via-studioeventemitter/23623/2 "2025-11-17T05:04:02Z")

</div>

Thanks for reporting this, we do have a couple of tasks to address some GC allocations in the integration that we are working on and will have out in an upcoming release.

---

<div class="post-metadata">

**Author:** ![fendercodes](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fendercodes/32/2971_2.png) [@fendercodes](https://qa.fmod.com/u/fendercodes)\
**Post date:** [November 19, 2025, 7:29am UTC](https://qa.fmod.com/t/gc-alloc-when-playing-audio-via-studioeventemitter/23623/3 "2025-11-19T07:29:01Z")

</div>

Awesome, do you have a _rough_ idea of when that release will be? We’re not going to production for another 12 months but just for my internal records it would be good to mark an ETA somewhere so we can remove our overrides at some point.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [November 20, 2025, 5:00am UTC](https://qa.fmod.com/t/gc-alloc-when-playing-audio-via-studioeventemitter/23623/4 "2025-11-20T05:00:51Z")

</div>

If all goes well, hopefully in the next version or two (of 2.03).
