GetSoundDuration

From SCAR Divi Manual
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