Command: sound

Syntax

sound <file> {,<gain>}

Description

Play a sound file.

Parameters

Switches

Notes

All audio output can be suppressed by use of the system numeric audio. This identifier must be set before sound is audible. At program startup it is set if audio facilities are available.

Examples

Play a sound file (on Sun/Solaris) twice. We make sure audio is enabled first.

audio = 1
sound mymessage.au,-x=2

Play a sound file in a continous loop. For Windows, this will play music.wav.

sound music,-loop

See Also

Commands:

pardon, record

Identifiers:

audio (numeric), gain (numeric)