# Programmer Sounds length is always 0

**URL:** <https://qa.fmod.com/t/programmer-sounds-length-is-always-0/16955>\
**Category:** Unity\
**Created:** [March 28, 2021, 1:52pm UTC](https://qa.fmod.com/t/programmer-sounds-length-is-always-0/16955 "2021-03-28T13:52:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![aishi](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/aishi/32/82_2.png) [@aishi](https://qa.fmod.com/u/aishi)\
**Post date:** [March 28, 2021, 11:18pm UTC](https://qa.fmod.com/t/programmer-sounds-length-is-always-0/16955/2 "2021-03-28T23:18:56Z")

</div>

Hi, can you try getting the target subsound and measuring that? I think the parent sound represents the bank itself if I’m not mistaken.

```
dialogueSound.getSubSound(dialogueSoundInfo.subsoundindex, out var subSound);
subSound.getLength(out var length, TIMEUNIT.MS);
```

---

_[View the full topic](https://qa.fmod.com/t/programmer-sounds-length-is-always-0/16955)._
