# Get length of a track only on Event Attached

**URL:** <https://qa.fmod.com/t/get-length-of-a-track-only-on-event-attached/19294>\
**Category:** Unreal Engine\
**Created:** [September 20, 2022, 5:09pm UTC](https://qa.fmod.com/t/get-length-of-a-track-only-on-event-attached/19294 "2022-09-20T17:09:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavelios](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@Pavelios](https://qa.fmod.com/u/Pavelios)\
**Post date:** [September 20, 2022, 5:09pm UTC](https://qa.fmod.com/t/get-length-of-a-track-only-on-event-attached/19294/1 "2022-09-20T17:09:00Z")

</div>

Hi,  
I need to get length of a track (simple audio cues with voiceover). Some are played 2D, some are attached. But I fail to find a way to get length of a cue from any other than “Play Event Attached”.  
Play 2D for example, I can’t find a way to get this information. How can I get track length from Play 2D and At Location?  
Any help would be appreciated. Thank you. I am attaching an image.

 ![fmod_getlen](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/7d3900a507102180f3fc761c7585fcad8508b8b4.jpeg)

---

<div class="post-metadata">

**Author:** ![Pavelios](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@Pavelios](https://qa.fmod.com/u/Pavelios)\
**Post date:** [September 21, 2022, 11:58am UTC](https://qa.fmod.com/t/get-length-of-a-track-only-on-event-attached/19294/2 "2022-09-21T11:58:58Z")

</div>

Hello, there is no way to do this?

---

<div class="post-metadata">

**Author:** ![Pavelios](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@Pavelios](https://qa.fmod.com/u/Pavelios)\
**Post date:** [September 23, 2022, 3:00pm UTC](https://qa.fmod.com/t/get-length-of-a-track-only-on-event-attached/19294/3 "2022-09-23T15:00:44Z")

</div>

Hello, sorry to keep bumping this threat, but it seems like a very easy thing to do, though I am stuck on this for 3 days now. I simply can’t use fmod if this functionality is not there, though I would seriously prefer to do so :(. I’ve tried casting, tried creating a dummy play event attached that would just get the time of the event, but nothing works. Any help would be greatly appreciated.

---

<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 26, 2022, 6:05am UTC](https://qa.fmod.com/t/get-length-of-a-track-only-on-event-attached/19294/4 "2022-09-26T06:05:18Z")

</div>

Hi,

An option to get the length from `Play event at Location` would be to use `Play Event Attached` passing in the Location in the drop-down parameters into the node.

Currently, there isn’t a workaround to get the length from `Play Event 2D`, I shall pass on this functionality to our dev team to look into further.

Apologies for the slow reply.
