GetSoundDuration

From SCAR Divi Manual
Revision as of 14:12, 1 July 2011 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

See Also