PlaySound routine

TURBU

PlaySound routine

 

Plays a sound effect.

 

Syntax

 

procedure playSound(name: string; volume, tempo, balance: word);

 

Description

 

This routine plays the sound effect specified by name.  No path or file extension is necessary; the engine will automatically search in the appropriate folders for sound effects, and check all valid sound extensions.  The volume parameter tells what percentage of the maximum volume the song will play at, and the balance parameter defines left/right balance, from 0 (full left) to 100 (full right).

If name does not refer to a valid sound effect, no sound is played.

NOTE:  The tempo parameter is not currently implemented, due to technical limitations.

This help file was created with the free trial version of HelpScribble.