Difference between revisions of "GetSoundDuration"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function GetSoundDuration(FileName: string): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Retu...") |
(No difference)
|
Revision as of 13:12, 1 July 2011
Definition
function GetSoundDuration(FileName: string): Integer;
Availability
SCAR Divi 3.00 > Current
Description
Returns the duration of a file specified by FileName in miliseconds, it only support wave files. Returns 0 if the file does not exist.
Example
begin WriteLn(GetSoundDuration('C:\Windows\Media\tada.wav')); end.
Output:
1617