LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   Gentoo, Quake 2, Sound (https://www.linuxquestions.org/questions/linux-games-33/gentoo-quake-2-sound-701988/)

b1f30 02-03-2009 12:46 PM

Gentoo, Quake 2, Sound
 
Hey all.

Distro: Gentoo
Kernel: 2.6.28-gentoo-r1

Have ALSA w/OSS compatibility built in, trying to play Quake2 (quake2-qmax), and the game starts fine, but this God awful stuttering loop starts playing, making the game no fun.

Quake 2 appears to use OSS for sound output: /dev/dsp <-- belongs to audio group, my username in it's group.

Some interesting bits from the Quake 2 config:

set sndchannels "8"
set sndspeed "0"
set sndbits "16"
set s_primary "1"
set s_mixahead "0.2"
set s_loadas8bit "0"
set s_khz "22"
set s_volume "0.400000"

Any ideas how to tune the config to make the stuttering stop?

It's an old game, but it's still one of my all time favorites.

Any assistance, greatly appreciated, as I'm no ALSA/mixing master.

farslayer 02-03-2009 01:37 PM

have you tried starting with this command ?

Quote:

quake2 +set snddriver ao +set snddevice oss

an alternate soltion to try..
Quote:

choppy sound in quake2
OK.. I fixed this problem by setting snddriver as sdl and snddevice as /dev/dsp in config.cfg

Quote:

I have had same problem and solved it by installing libsdl-alsa and disabling sound mixing (ESD) - system sounds. Another good thing is to use q2 quetoo engine, disabling desktop acceleration (compiz, beryl)...etc

example to set sound in q2

#quake2 +set snddriver sdl
or
#quake2 +set snddriver alsa
or
#quake2 +set snddriver oss

Hope one of those works for you..

b1f30 02-03-2009 03:33 PM

Thanks for the tips. Tried them all, still not working.

Hm.

It's a very harsh stutter, but 'inside' it, you can hear the regular game sounds. It's really choppy thanks to the stutter.

I'm going to keep chipping away.

:-\

farslayer 02-03-2009 03:59 PM

bummer.. your post inspired me so I just finished installing quake2 on my little netbook, it installed without any issues and everything is working. Now if I can figure out how to get it to go Fullscreen in widescreen format on this little bugger I'd be pretty happy.. :)


I did notice as I was searching that quake2 did not like esd . is esd running on your machine by chance ?
http://developer.gnome.org/doc/whitepapers/esd/


Found this old thread with the same issue you are describing..
https://www.linuxquestions.org/quest...e-this-131829/

Not sure of a solution for you.

Alien_Hominid 02-06-2009 02:09 AM

Try quetoo, qfusion, etc...

dracolich 03-15-2009 07:43 AM

I know it's been a while but did you ever solve this? I just had the same problem last night and solved it by starting the game with the sdlquake2 command. On my system it's found in /usr/lib/quake2. I'm running Quake2-3.21 with the maxpack on Slackware 12.2 with kernel 2.6.28.3.

Quote:

It's an old game, but it's still one of my all time favorites.
Same here! :D


All times are GMT -5. The time now is 06:31 PM.