Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UT2004: no sound :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Guinpen
Guru
Guru


Joined: 08 Dec 2004
Posts: 393

PostPosted: Sun Nov 04, 2007 12:42 am    Post subject: UT2004: no sound :( Reply with quote

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
View user's profile Send private message
whig
l33t
l33t


Joined: 27 Nov 2004
Posts: 973
Location: New Zealand

PostPosted: Sun Nov 04, 2007 1:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Guinpen
Guru
Guru


Joined: 08 Dec 2004
Posts: 393

PostPosted: Sun Nov 04, 2007 3:44 am    Post subject: Reply with quote

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
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Sat Nov 10, 2007 7:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Guinpen
Guru
Guru


Joined: 08 Dec 2004
Posts: 393

PostPosted: Sat Nov 10, 2007 10:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Nov 10, 2007 11:36 pm    Post subject: Reply with quote

See thread regarding "sampling-rate".
Back to top
View user's profile Send private message
Guinpen
Guru
Guru


Joined: 08 Dec 2004
Posts: 393

PostPosted: Sun Nov 11, 2007 1:48 am    Post subject: Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Nov 11, 2007 2:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
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