Play Sound with Unknown Length?

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?

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.