Back to the Vavoom Forum Archives


Forum

[Fixed] SDL Sound screwing up

Wed, 09 Feb 2005 02:15:30

troll

Vavoom 1.16 and 1.16.1 compiled with sdl 1.2.8 SDL devices alsa oss and arts The sound timing is off/overlapped and the volume is inconsistent. sometimes up, somtimes down. This is the same for all sdl devices. <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> I have tried to fix this every which way. When compiled with openal cvs today and devices sdl alsa and arts the sound is perfect with each device. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> (arts is a little lagged as a device but the volume and timings are still good) I can only assume that there is a bug in the sdl sound code. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Wed, 09 Feb 2005 08:01:03

Janis Legzdinsh

And that'a why I prefer using OpenAL myself. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> SDL soud code always was a big problem, mostly because this part was contributes by others. I'll try to fix these issues.
Fri, 25 Feb 2005 14:28:45

GregLee

[quote="Janis Legzdinsh":1g5w737j]And that'a why I prefer using OpenAL myself. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> SDL soud code always was a big problem, mostly because this part was contributes by others. I'll try to fix these issues. I've been away from Vavoom for awhile, and I don't know if any of the changes I sent for SDL sound ever got committed to CVS. However, I thought you might be interested to know that the 5.1 channel support I added can now be used with the SDL library, at least using Alsa on Linux. I worked out 5.1 support for SDL last summer, and after a long campaign, my changes to the SDL and SDL_mixer libraries were accepted last fall.
Fri, 25 Feb 2005 16:52:06

Janis Legzdinsh

Sounds cool. Do you have any patch ready?
Fri, 25 Feb 2005 17:59:46

GregLee

[quote="Janis Legzdinsh":2rudj8oa]Sounds cool. Do you have any patch ready? It's there already in the changes I sent you, long ago. The only other thing I worked out for Vavoom was a set of 5.1 .wav files for the effects in Doom2. They don't sound that great -- just the regular sound effects with a touch of surround reverberation added.
Mon, 07 Mar 2005 13:21:31

jw

@troll: I remember having a similar problem a while back with ZSNES, which also uses SDL for sound. Have you tried doing a "killall -9 artsd" before starting Vavoom? That might help. BTW: what's up with the name man?
Mon, 07 Mar 2005 15:23:59

Janis Legzdinsh

Won't this kill some of the KDE apps currently running, Noatun might be one of them.
Mon, 07 Mar 2005 15:50:28

GregLee

Artsd has a generally bad reputation for screwing up other applications tring to use sound. So here are two other things to try: (1) Have SDL use its arts sound driver instead of its oss driver, or (2) have SDL use its alsa driver (and possibly also kill off artsd). Do (1) by putting in the environment: SDL_AUDIODRIVER=arts or (2) with SDL_AUDIODRIVER=alsa I've never used either the arts or the oss drivers. I tested my SDL changes only with the alsa driver. Only the alsa driver will handle 5.1 sound (not the alsa emulation of oss).
Mon, 25 Apr 2005 01:31:14

troll

I have upgraded to 1.17 and the problem still exists - have tried it with different drivers - arts alsa etc and still get the problem - its only a real problem in strife where there are audio cues. I solved it by compiling without sdl altogether.
Mon, 25 Apr 2005 01:32:41

troll

I should point out that vavoom is the only SDL application that I have this problem with - Others dont do this.
Mon, 09 May 2005 13:06:46

Janis Legzdinsh

Actually I think the problem is in SDL_mixer. Vavoom tries to play sounds a little pitched, i.e. with changed frequency, and it seams that SDL_mixer doesn't like non-standard frequencies and rounds them to standard ones. I think that when I'll finish with the new texture manager I'll look into this.
Mon, 29 Aug 2005 21:52:21

Janis Legzdinsh

I found some other bugs in SDL sound driver and it sounds good now.

Back to the Vavoom Forum Archives