View previous topic :: View next topic |
Author |
Message |
Guinpen Guru
Joined: 08 Dec 2004 Posts: 393
|
Posted: Sun Nov 04, 2007 12:42 am Post subject: UT2004: no sound :( |
|
|
This has been beaten to death, but none of the countless threads really helps me. I have an AMD64 machine, and I just installed UT2004 from the ebuild. Then, in the System/ folder I replaced the two .so files as follows:
Code: | libSDL-1.2.so.0 -> /usr/lib64/libSDL-1.2.so.0
openal.so -> /usr/lib64/libopenal.so |
My .openalrc is :
Code: | (define devices '(alsa))
(define alsa-out-device default)
# (define devices '(alsa))
# (define speaker-num 8)
# (define alsa-out-device "surround71:0,0")
# (define alsa-in-device "hw:0,0") |
(I'm trying to get any sound at first, surround will come next...
The soundcard is hda-intel. The problem: There is no sound. UT2004 gives no console output. The game runs normally (with no sound), but when I quit, it does not terminate and the UT2004.log file is empty.
Note: If I keep the game's original openal.so, I get a different behavior: The game crashes on start-up if OpenAL is set to use ALSA. With OSS it gives an error about missing OSS (but then runs fine), and with WAV-out, it works.
Any help would be appreciated!! |
|
Back to top |
|
|
whig l33t
Joined: 27 Nov 2004 Posts: 973 Location: New Zealand
|
Posted: Sun Nov 04, 2007 1:51 am Post subject: |
|
|
I was having problems (amd64) too, it came down to possessing libstdc++.so.5. Although I'm not sure our issues are exactly the same. |
|
Back to top |
|
|
Guinpen Guru
Joined: 08 Dec 2004 Posts: 393
|
Posted: Sun Nov 04, 2007 3:44 am Post subject: |
|
|
I don't think it's that. I have libstdc++.so.5 from the sys-libs/libstdc++-v3-3.3.6 package. The game runs, it's just the sound that causes problems. |
|
Back to top |
|
|
energyman76b Advocate
Joined: 26 Mar 2003 Posts: 2048 Location: Germany
|
Posted: Sat Nov 10, 2007 7:21 am Post subject: |
|
|
just remove .openalrc and retry. _________________ Study finds stunning lack of racial, gender, and economic diversity among middle-class white males
I identify as a dirty penismensch. |
|
Back to top |
|
|
Guinpen Guru
Joined: 08 Dec 2004 Posts: 393
|
Posted: Sat Nov 10, 2007 10:18 pm Post subject: |
|
|
With .openalrc removed, OpenAL defaults to OSS, which I do not have. I want to to use ALSA so that I can maybe get 7.1 sound.
As I said above: with no .openalrc, the UT2004-stock openal.so the game complains about no OSS, and with my own openal (symlink to /usr/lib64/libopenal.so) it gives no messages, but no sound either (and UT2004 does not terminate; the log is empty). |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sat Nov 10, 2007 11:36 pm Post subject: |
|
|
See thread regarding "sampling-rate". |
|
Back to top |
|
|
Guinpen Guru
Joined: 08 Dec 2004 Posts: 393
|
Posted: Sun Nov 11, 2007 1:48 am Post subject: |
|
|
Spot on! Adding the rate parameter fixed it! The sound is far from perfect (it has some crackling) with rate 44100. No sound with 48000, I guess that is the default. Curiously, 96000 works with significantly less crackling, but only for a while - after that the sound becomes defective (looping forever etc.).
I'll keep playing with the setting (and not only ). Thanks! |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Nov 11, 2007 2:19 am Post subject: |
|
|
As an aside, comments in that file start with a semi-colon, not a hash. It's a weird lisp-like format.
Try the magical modinfo. |
|
Back to top |
|
|
|