User sounds

From NetHackWiki
Revision as of 09:53, 17 April 2016 by Paxed (talk | contribs) (stubby first doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This page is a stub. Should you wish to do so, you can contribute by expanding this page.

Some platforms allow you to define sound files to be played when a message that matches a user-defined pattern is delivered to the message window. At this time the win32tty and win32gui ports support the use of user sounds.

The following config file entries are relevant to mapping user sounds to messages:

SOUNDDIR=C:\foo
SOUND=MESG "regular expression pattern" "filename" volume

SOUNDDIR can be defined once, and SOUND-lines can be defined as many times as needed.

For example:

SOUND=MESG "This door is locked" "lock.wav" 100