Difference between revisions of "PlaySound"

From SCAR Divi Manual
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 13:12, 1 July 2011

Definition

function PlaySound(FileName: string): Boolean;

Availability

SCAR Divi 3.00 > Current

Description

Plays a sound file specified by FileName, it only support wave files. Returns false if the file does not exist, if it exists but is not a wave file, it still returns true.

Example

begin
  PlaySound('C:\Windows\Media\tada.wav');
end.

See Also