Hey everyone,
I’m stuck trying to get sound working and I’m hoping someone here can shed some light on this. I’ve tried compiling for both a direct Ubuntu installation and as an AppImage, but neither approach enables sound. I consistently run into this message:
(Alt text: “Options warning: ‘sound’ will have no effect on this build.”)
Here’s what I’ve done so far:
I’m passing the SOUND variable to make. I’ve tried SOUND=y, SOUND=1, and SOUND=YesPlease (similar to what the Makefile itself uses for Windows builds). My typical command looks like this: make TILES=y SOUND=y LINUXDEPLOY=/my/path/to/linuxdeploy.AppImage appimage
I’ve performed a make clean before each full compilation to ensure everything is rebuilt from scratch, but the warning persists.
I’ve also explicitly uncommented the SOUND_PLAY_COMMAND line in sound.h to ensure the game knows what command to use: #define SOUND_PLAY_COMMAND “/usr/bin/play -v .5 "%s" 2>/dev/null &” (I’ve confirmed /usr/bin/play with MP3 support works on my system.)
The interesting part is that the game compiles successfully, and everything else works perfectly – it’s just the sound that’s missing.
Any help or ideas on how to diagnose and fix this would be greatly appreciated! Thanks!
– Edit:
I finally made it work! Despite the warning on initialization you can still play sounds, It just needed to be an absolute path for the sounds in the init.txt
eg.
sound ^= door:sounds/door.mp3 – will not work
sound ^= door:/home/user/.crawl/sounds/door.mp3 – will work