Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


PlaySound

Built-in

SYNTAX

PlaySound [-f filename] [-q] [name1] [name2]…

DESCRIPTION

The PlaySound command plays a sound resource ('snd ').

INPUT

None

OUTPUT

None

STATUS

None

PARAMETERS

[name1] [name2]…

Specifies one or more 'snd ' resources to be played and the sequence in which they are to be played. If this parameter is omitted, PlaySound plays the first sound resource it finds.

OPTIONS

-f filename

Specifies the name of the file that contains the 'snd ' resource. If this option is omitted, the current resource path is searched.

-q

Plays the sound "quietly"; error messages are omitted.

EXAMPLES

PlaySound -f 'Maelstrom Sounds' 'Got Canister' 'Game Over'

 
 


Last Updated July 2000