|
GetSoundDuration method |
![]() ![]()
|
Remarks
Gets the duration of the song currently loaded.
This method keeps count of eventual tempo and/or playback rate changes so the reported duration may vary depending upon the current tempo and/or playback rate. If you should need retrieving the original duration of the loaded song you should use the GetSoundOriginalDuration method.
Due to the format of an MPEG Audio bitstream, it is not possible to know the type and duration of a MP3 file by just looking at a header. Some guesses can be made, but for a precise measurement of the contents of an MPEG Audio file, the entire file has to be scanned: this method performs only a foresight of the sound duration.
A formatted string of the song duration can be retrieved using the GetFormattedSoundDuration method.
Syntax
Return value
|