Recently installed S3D, and I must say it’s horrifyingly addictive. The sound is working like crap – but I keep on playing it! 😉
Not sure how to describe the sound issue, but it sounds very, er, VIC-20…. quite broken with bad “digital distortion”.
Recompiled sdllib and sdl-mixer – no change, recompiling S3d now… just was watching the configure script run, and saw this:
checking for SDL - version >= 1.2.5... yes
checking for SDL_mixer lib... yes
checking for SDL_net lib... yes
checking for beer in -lfridge... no
Warning: No beer found in fridge!
We highly suggest that you rectify this situation immediately.
checking for OpenGL support... yes
Okay, I finally got it to go – I tried your suggestions, but they didn’t do it – VERY close however. I took a look at the sound files, and found that they are 16 bit samples – changed the aforementioned line to:
if ( Mix_OpenAudio(11025, AUDIO_S16SYS, 1, 512) < 0 )
And it sounds great!
Thanks for the help, and from the little bit I have looked at the source, it is very clear and easy to read. Good work!
I’m still wondering about one thing, should it be “S16SYS” or “S16LSB”? I’m *thinking* that “S16SYS” should be the way to go, as in SDL_audio.h it figures out whether to use “S16MSB” or “S16LSB” depending on the endianness of the architecture: