| View previous topic :: View next topic |
| Author |
Message |
Aniruddha Veteran


Joined: 18 Feb 2006 Posts: 1770 Location: The Netherlands
|
Posted: Sat Dec 01, 2007 7:49 am Post subject: (SOLVED) Sound distortion in almost all games |
|
|
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
# 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 |
|
 |
PaulBredbury Veteran


Joined: 14 Jul 2005 Posts: 5931
|
Posted: Sat Dec 01, 2007 8:04 am Post subject: |
|
|
~/.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 |
|
 |
Aniruddha Veteran


Joined: 18 Feb 2006 Posts: 1770 Location: The Netherlands
|
Posted: Sat Dec 01, 2007 12:53 pm Post subject: |
|
|
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 |
|
 |
Aniruddha Veteran


Joined: 18 Feb 2006 Posts: 1770 Location: The Netherlands
|
Posted: Sat Dec 01, 2007 2:06 pm Post subject: |
|
|
I compiled a new kernel (22-r 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 |
|
 |
PaulBredbury Veteran


Joined: 14 Jul 2005 Posts: 5931
|
Posted: Sat Dec 01, 2007 3:30 pm Post subject: |
|
|
| 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 |
|
 |
Aniruddha Veteran


Joined: 18 Feb 2006 Posts: 1770 Location: The Netherlands
|
Posted: Tue Dec 04, 2007 6:56 am Post subject: |
|
|
| 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  _________________ Help Gentoo improve, do some bug wrangling! |
|
| Back to top |
|
 |
|