ID:2019997
 
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
Hey. We have some pretty good sound manipulation features, but unfortunately, music is a completely different deal. While one music can be played ad infinitum, I've noticed that assembling playlists requires you to calculate things by hand.

Foregoing that, I'd like to request some sound convenience features to help with automated tunes:
- len(sound) should return the duration of the sound file in seconds (or tenths of seconds, if that's better)
- usr << status=SOUND_REMAINING to query the remaining length of the sound from the client. Returns 0 if the sound finished playing and is not looping - but it would return the remaining time appropriately if the sound is only paused. Returns -1 if the sound is looping. If not 0 or -1, it returns the remaining seconds (or deciseconds) queried from the client. Obviously, this would be relatively inaccurate for sounds already playing, but it would essentially increase usefulness for SOUND_PAUSED.