Nethack Sound Modification 1.0

mrq, 2000

This sound patch involves two parts, the source patches, which make nethack actually trigger sounds, and the sound server, which nethack talks to to play sounds. It also includes my hitpointbar patch.

The Patch

After downloading both files, patch your nethack source with

patch -p0 < nethack-3.3.1-sound.diff
Now either add OPTIONS=soundfx to your ~/.nethackrc, or use the O command during the game to enable sound.

The Server

Once the sound server is unzipped, simply run

make
to compile it, then
./listener directory/with/sound/files/ 1234
Normally the sound files will be in the same directory as the listener program, so just use ".". 1234 is the TCP port which the server will listen on - if you wish to use a different port you will need to specify this in the nethack source, in
include/hack.h

NOTE: The sound server requires libesd to compile.

Downloads

Download the sound+hitpointbar diff for 3.3.1 sources here ( ).
Download the sound server and .au files here ( ).