Hey guys!!
First post, have to say: thank you so much for all that you are doing!!
This game is great!!
I have some coding skill but don't think good enough for actually working on the game code! Will try to help doing some "low skill" things... and reporting bugs, of course!
Now, something serious...
I'm experiencing the same problem with the ALSA sound driver: the .ogg are played at a ultrafast speed. Switching to SDL solve the problem. So, would say this is a low priority. I tried to use the snd_alsa.c.new but i couldn't compile:
.
.
.
* [UFO] ../debugi386/client/snd_alsa.o
ports/linux/snd_alsa.c: In function 'ALSA_SNDDMA_Init':
ports/linux/snd_alsa.c:49: error: expected expression before '/' token
ports/linux/snd_alsa.c:56: error: 'false' undeclared (first use in this function)
ports/linux/snd_alsa.c:56: error: (Each undeclared identifier is reported only once
ports/linux/snd_alsa.c:56: error: for each function it appears in.)
ports/linux/snd_alsa.c:79: error: expected expression before '/' token
ports/linux/snd_alsa.c:81: error: expected expression before '/' token
ports/linux/snd_alsa.c:89: error: expected expression before '/' token
ports/linux/snd_alsa.c:99: error: expected expression before '/' token
ports/linux/snd_alsa.c:103: warning: pointer targets in passing argument 3 of 'snd_pcm_hw_params_set_rate_near' differ in signedness
ports/linux/snd_alsa.c:105: error: expected expression before '/' token
ports/linux/snd_alsa.c:111: error: expected expression before '/' token
ports/linux/snd_alsa.c:128: error: expected expression before '/' token
ports/linux/snd_alsa.c:137: error: expected expression before '/' token
ports/linux/snd_alsa.c:170: error: expected expression before '/' token
ports/linux/snd_alsa.c:179: error: 'true' undeclared (first use in this function)
ports/linux/snd_alsa.c:45: warning: unused variable 'i'
ports/linux/snd_alsa.c:180: warning: control reaches end of non-void function
ports/linux/snd_alsa.c: In function 'ALSA_SNDDMA_Submit':
ports/linux/snd_alsa.c:224: error: expected expression before '/' token
ports/linux/snd_alsa.c:225: error: expected expression before '/' token
ports/linux/snd_alsa.c:229: error: expected expression before '/' token
ports/linux/snd_alsa.c:232: error: expected expression before '/' token
make[1]: *** [../debugi386/client/snd_alsa.o] Error 1
make: *** [build_debug] Error 2
So, I fixed all the comments from //comment to /*comment*/ and the true/false constants to qtrue/qfalse (in this case I just guessed... LOL, no idea about that!).
Anyway, I managed to compile it getting just a:
* [UFO] ../debugi386/client/snd_alsa.o
ports/linux/snd_alsa.c: In function 'ALSA_SNDDMA_Init':
ports/linux/snd_alsa.c:103: warning: pointer targets in passing argument 3 of 'snd_pcm_hw_params_set_rate_near' differ in signedness
ports/linux/snd_alsa.c:118: warning: pointer targets in passing argument 3 of 'snd_pcm_hw_params_set_rate_near' differ in signedness
I think that this file needs more work as the alsa sound was wrong (guess the wrong things are going in the buffer) but I could hear the original music. The speed is better but is still faster than with SDL.
Hope all this will be useful.
Ops, forgot:
Version: trunk (just updated)
OS: linux debian unstable (kernel 2.6.16.20)
Keep up the good work!!