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.
After downloading both files, patch your nethack source with
patch -p0 < nethack-3.3.1-sound.diffNow either add OPTIONS=soundfx to your ~/.nethackrc, or use the O command during the game to enable sound.
Once the sound server is unzipped, simply run
maketo compile it, then
./listener directory/with/sound/files/ 1234Normally 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
Download the sound+hitpointbar diff for 3.3.1 sources here (
).
Download the sound server and .au files here (
).