User sounds

From NetHackWiki
(Redirected from SOUNDDIR)
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