View Single Post
Old 12-05-2012, 09:37 AM   #1

Litude's Avatar
Sound crash after compiling SW from source code

I'm having a little trouble with my executable that I've compiled from the Shadow Warrior source code. I've downloaded the source code from here and took some modified .H files from here by jbailey to make the code compile under Open Watcom 1.6. I've made no other changes whatsoever.

Now while the code compiles fine and the game itself also starts fine, it occasionally crashes when certain sound effects are supposed to be played with the following error message:
Assertion failed: num >= 0 && num < DIGI_MAX
 SOUNDS.C, line 739
One example of a situation when this happens is in Wanton Destruction when trying to shoot the bunnies in the level Monastery using the Riot Gun.

Does anyone know how one could tweak the source code to fix this problem?
Litude is offline