In an attempt to enable audio support, I ran into two issues:
SDL_audiolib compilation errors
These were caused by the fact that it uses keywords instead of symbols for things like "and" or "or" and they don't compile for some reason. After checking it with chatgpt, I decided to circumvent it with:
find /opt/toolchains/dc/kos/devilutionX/build/_deps/sdl_audiolib-src/ -name '*.h' -or -name '*.cpp' | xargs sed -i 's/\bnot\b/!/g' && \
find /opt/toolchains/dc/kos/devilutionX/build/_deps/sdl_audiolib-src/ -name '*.h' -or -name '*.cpp' | xargs sed -i 's/\bor\b/\|\|/g' && \
find /opt/toolchains/dc/kos/devilutionX/build/_deps/sdl_audiolib-src/ -name '*.h' -or -name '*.cpp' | xargs sed -i 's/\band\b/\&\&/g'
Thread stack underrun
The game crashes after playing the intro (with sound) due to a thread stack underrun error that happens here. Ignoring this check results in the game playing with sound until the first loading screen, where it crashes with an out-of-memory error.
In an attempt to enable audio support, I ran into two issues:
SDL_audiolib compilation errors
These were caused by the fact that it uses keywords instead of symbols for things like "and" or "or" and they don't compile for some reason. After checking it with chatgpt, I decided to circumvent it with:
Thread stack underrun
The game crashes after playing the intro (with sound) due to a thread stack underrun error that happens here. Ignoring this check results in the game playing with sound until the first loading screen, where it crashes with an out-of-memory error.