VASSAL Reference Manual

Home > Module > Game Piece Palette > Game Piece > Play Sound

Play Sound

This trait allows you to specify a command that plays an audible sound.

Menu Text: The name of the menu item in the right-click menu
Keyboard Command: The keyboard shortcut for the command
Sound Clip: Select a file in .au, .aiff, .wav or .mp3 format to add it to the module.  The sound file specified in this field will be played when the action is invoked. You can select a specific Sound file using the Select button, or you can load multiple sound files into your module and use an Expression to define the name of the sound file at the time the play command is invoked.
Send sound to other players? If selected, then the sound will be echoed to other players when playing live or reading from a logfile.  Otherwise, the sound is only audible to the player who invoked the command.