Chaosforge Forum

DoomRL => Bug Reports => Topic started by: sklres on July 21, 2011, 17:29

Title: [0.9.9.3] Volume is muted when too many sounds play at once (includes a fix).
Post by: sklres on July 21, 2011, 17:29
I'm running DoomRL 0.9.9.3 on GNU/Linux (with sound). As far as I know, this bug does not happen on Windnows.

When DoomRL tries to play many sounds at once (e.g. when a lot of enemies are injured by a shotgun blast) the sound is either completely muted or cuts off abruptly. This makes radar shooting very hard on crowded levels and is generally very annoying (especially in the City of Skulls).

To see this in action download sound_test.lua into your DoomRL directory and run:
Code: [Select]
./doomrl -sandbox sound_test.luaYou will be placed into an empty level with 50 barons just out of your vision range. Fire a few shots to the right in quick succession and most (if not all) pain sounds will be muted.

There are a few problems:

This is what happens on the test level:

The fix is easy:

Until this bug is fixed, you can use a small program to fix these issues. There is no guarantee that it will work, so backup your data before running it and don't whine if it formats your hard drive ;)

Download sound_fix.so into your DoomRL folder and run DoomRL like this:
Code: [Select]
LD_PRELOAD=./sound_fix.so ./doomrlor like this:
Code: [Select]
export LD_PRELOAD=./sound_fix.so
./doomrl

If you want to compile sound_fix.so from source, download sound_fix.tar.gz, unpack it and run `make' in the created directory - this will produce the sound_fix.so file (make sure you have g++, SDL and SDL_mixer development packages installed).

I hope this helps.