LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices

Reply
 
Search this Thread
Old 02-03-2009, 12:46 PM   #1
b1f30
Member
 
Registered: Nov 2007
Location: GMT -5, who wants to know
Distribution: Gentoo, Debian, BSD, Slack
Posts: 119

Rep: Reputation: 15
Cool 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.
 
Old 02-03-2009, 01:37 PM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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..
 
Old 02-03-2009, 03:33 PM   #3
b1f30
Member
 
Registered: Nov 2007
Location: GMT -5, who wants to know
Distribution: Gentoo, Debian, BSD, Slack
Posts: 119

Original Poster
Rep: Reputation: 15
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.

:-\
 
Old 02-03-2009, 03:59 PM   #4
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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.

Last edited by farslayer; 02-03-2009 at 04:03 PM.
 
Old 02-06-2009, 02:09 AM   #5
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Try quetoo, qfusion, etc...
 
Old 03-15-2009, 07:43 AM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
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!
 
  


Reply

Tags
alsa, audio, game, gentoo, oss, sound


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quake 3 = no sound Ice9 Linux - Software 15 01-10-2007 11:05 PM
Quake 4 Crashes on Open Gentoo 2.6.17 SDL_INIT problems andycarr059 Linux - Software 0 09-07-2006 03:13 AM
Quake IV Segfaults ATI Radeon x1800 512MiB Gentoo verdeboy2k Linux - Games 1 05-30-2006 11:56 AM
quake 3 sound e1000 Linux - Games 2 12-03-2003 01:34 AM
sound under quake schatoor Linux - Software 0 09-24-2002 08:30 AM


All times are GMT -5. The time now is 03:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration