# Play Sound with Unknown Length?

**URL:** https://qa.fmod.com/t/play-sound-with-unknown-length/12702
**Category:** FMOD Engine
**Created:** [September 18, 2016, 5:23am UTC](https://qa.fmod.com/t/play-sound-with-unknown-length/12702 "2016-09-18T05:23:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gyrohelit](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@gyrohelit](https://qa.fmod.com/u/gyrohelit)
#### Post date: [September 18, 2016, 5:23am UTC](https://qa.fmod.com/t/play-sound-with-unknown-length/12702/1 "2016-09-18T05:23:46Z")

</div>

How do you handle a sound without knowing what it’s length is until it reaches the end? Is there a way to handle such a case?

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [September 18, 2016, 9:26pm UTC](https://qa.fmod.com/t/play-sound-with-unknown-length/12702/2 "2016-09-18T21:26:46Z")

</div>

Is this a custom sound? You can specify (unsigned int)-1 for the length if it is a stream, as is the case with internet streams.
