Decoder:getDuration
Gets the duration of the sound file. It may not always be sample-accurate, and it may return -1 if the duration cannot be determined at all.
duration = Decoder:getDuration()
duration number The duration of the sound file in seconds, or -1 if it cannot be determined.