sound distortion with 1.4.X, 1.5.X

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Kristjan

Re: sound distortion with 1.4.X, 1.5.X

Post by Kristjan »

And vegastrike or ut2004 use libsdl audio? Not alsa, openal, etc...?

Other suggestion would be to recompile the kernel with 1000Hz timer and preemptible low latency config.


...
Out of curiosity I got rid of pulseaudio (that gave me lowest buffer 1024 without distortions) and played around with alsa - quality gets worse with default sample rate 44100, however if I change it to 48000 then I can lower buffer size to 512 without crackling. I think I will try oss also, but not today :annoyed: .

My notebook's soundcard is Realtek ALC655 rev0, using Ubuntu Karmic Koala default kernel.
energyman76c
Posts: 199
Joined: May 26th, 2004, 9:38 pm

Re: sound distortion with 1.4.X, 1.5.X

Post by energyman76c »

vegastrike uses libsdl and libopenal
as does ut2004
Soofix
Posts: 5
Joined: September 9th, 2009, 9:34 pm

Re: sound distortion with 1.4.X, 1.5.X

Post by Soofix »

Kristjan wrote:And how many other games using sdl for audio did you try?
1. So what open source SDL game should i try ?
Is there many out there ?

2. Tried changing setting to 48000 Hz, no effect.

3. I noticed something else: The sound distortion only happens when two unit sounds are being played next to each other.
For example:
- Unit using ranged attack on a unit without ranged attack : NO disortion (only attacker weapon sounds are played)
- Unit using ranged attack vs a unit with ranged attack : Sound disorted (Both units produce weapon battle sounds)
- Unit using melee attack against a unit without melee attack : NO disortion
- Unit using melee attack against a unit with melee attack : Sound disorted (Both units produce weapon battle sounds)
And so on...

4. I will try to compile old wesnoth version (1.4.x) and tell you if the problem persists.
Soofix
Posts: 5
Joined: September 9th, 2009, 9:34 pm

Re: sound distortion with 1.4.X, 1.5.X

Post by Soofix »

Hello,

I have successfully compiled old version of wesnoth, and the problem persists.

Perhaps somebody here who mentioned something about preemtible kernel was right.
I recompiled my kernel recently, and made it moderately preemptible and changed frequency to 300hz - that could be the case.

I will try playing with settings in some newer kernel, but for now i think the problem is bearable and i can live with it.

However this is probably a serious bug in SDL.
energyman76c
Posts: 199
Joined: May 26th, 2004, 9:38 pm

Re: sound distortion with 1.4.X, 1.5.X

Post by energyman76c »

1.7.6. Music turned off, every other effect on - heavy sound distortions all the time.

1.7.7 Music turned on, every other effect on - heavy sound distortions all the time and this in konsole:
wesnoth
Battle for Wesnoth v1.7.7
Started on Mon Nov 9 15:13:26 2009


Data directory: /usr/local/share/wesnoth
User configuration directory: /home/energyman/.wesnoth1.7

Checking video mode: 1280x960x32...
setting mode to 1280x960x32
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
Post Reply