General > Discussion

stutteringly sound

<< < (2/2)

f-bert:
thanks for help

i had build the last trunk svn version but there where some other truppels. i used there alsa.c.new but the sound stuttering.
with sdl btw. oss i got no voice from the speaker.

is it compatible with  x.org 7 ?

Mattn:
i´m not sure whether it is compatible - i use the "old" xfree that ships with debian. why? doesn´t it compile? give me error messages, please

f-bert:
it compiles fine. i dont now why it is lacking... maybe you can test it on ubuntu dapper.

Bandobras:
> is it compatible with x.org 7 ?

Yes, it is. I run it with Debian unstable.

bullfrog:
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!!

Navigation

[0] Message Index

[*] Previous page

Go to full version