PlaySound

From SCAR Divi Manual
Revision as of 13:08, 1 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function PlaySound(FileName: string): Boolean; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Plays a sou...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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
  WriteLn(Abs(1.1));
  WriteLn(Abs(-1.1));
end.

Output:

1,1
1,1

See Also