Gentoo Forums
Gentoo Forums
Quick Search: in
(SOLVED) Sound distortion in almost all games
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Aniruddha
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1770
Location: The Netherlands

PostPosted: Sat Dec 01, 2007 7:49 am    Post subject: (SOLVED) Sound distortion in almost all games Reply with quote

I have a weird problem with my current Gentoo install. The sound is distorted for lots and lots of games. Any ideas where I can start to look for solutions?

Games with sound distortion
Code:
Cold-war-demo
Ballistics-demo
Openarena


Games without sound distortion
Code:
World of padman


# lsmod | grep snd
Code:
snd_seq_oss            25984  0
snd_seq_midi_event      7552  1 snd_seq_oss
snd_seq                35408  4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            33696  0
snd_mixer_oss          16128  1 snd_pcm_oss
snd_via82xx            23064  3
gameport               12808  1 snd_via82xx
snd_mpu401_uart         8960  1 snd_via82xx
snd_rawmidi            18208  1 snd_mpu401_uart
snd_seq_device          8588  3 snd_seq_oss,snd_seq,snd_rawmidi
snd_via82xx_modem      13832  0
snd_ac97_codec         74400  2 snd_via82xx,snd_via82xx_modem
ac97_bus                5376  1 snd_ac97_codec
snd_pcm                47492  5 snd_pcm_oss,snd_via82xx,snd_via82xx_modem,snd_ac97_codec
snd_timer              18180  2 snd_seq,snd_pcm
snd                    33508  17 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_via82xx_modem,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc         10504  3 snd_via82xx,snd_via82xx_modem,snd_pcm

_________________
Help Gentoo improve, do some bug wrangling!


Last edited by Aniruddha on Tue Dec 04, 2007 6:56 am; edited 1 time in total
Back to top
View user's profile Send private message
PaulBredbury
Veteran
Veteran


Joined: 14 Jul 2005
Posts: 5931

PostPosted: Sat Dec 01, 2007 8:04 am    Post subject: Reply with quote

~/.asoundrc is hugely important for dmix-requiring soundcards. E.g. see thread. It's different for every soundcard.

~/.openalrc is of course also important, for games that use openal.

There are 2 common sound speeds - 44.1 and 48khz. These files often need to be customized to fit both the game and soundcard.
Back to top
View user's profile Send private message
Aniruddha
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1770
Location: The Netherlands

PostPosted: Sat Dec 01, 2007 12:53 pm    Post subject: Reply with quote

Thanks for the help Paul. Strange thing is that I never encountered this problem in 2 yrs of Gentoo usage. Is suspect the root cause is hidden somewhere in the generic genkernel I now use. I tried removing all unnecessary modules but this didn't help much. Do you happen to know which kernel option might cause problems (OSS is disabled)?

Update
I have done some testing,but I don't think it has anything to do with ~/.asoundrc or ~/.openalrc. I don't even have these files. I also tested running games with a fresh user account I still got the same results :(
_________________
Help Gentoo improve, do some bug wrangling!
Back to top
View user's profile Send private message
Aniruddha
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1770
Location: The Netherlands

PostPosted: Sat Dec 01, 2007 2:06 pm    Post subject: Reply with quote

I compiled a new kernel (22-r8) which solved this problem. It definitely is a (gen)kernel problem. Who has an idea where to look for problems?
_________________
Help Gentoo improve, do some bug wrangling!
Back to top
View user's profile Send private message
PaulBredbury
Veteran
Veteran


Joined: 14 Jul 2005
Posts: 5931

PostPosted: Sat Dec 01, 2007 3:30 pm    Post subject: Reply with quote

It's an ALSA problem. ALSA just so happens to be part of the kernel. Read wiki. There are no ALSA devs here.
Back to top
View user's profile Send private message
Aniruddha
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1770
Location: The Netherlands

PostPosted: Tue Dec 04, 2007 6:56 am    Post subject: Reply with quote

PaulBredbury wrote:
It's an ALSA problem. ALSA just so happens to be part of the kernel. Read wiki. There are no ALSA devs here.


Fair enough. I'll add solved to the title and botehr the ALSA devs :lol:
_________________
Help Gentoo improve, do some bug wrangling!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum