LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-09-2007, 01:46 PM   #1
Chargh
Member
 
Registered: Apr 2004
Location: Seba Beach Alberta Canada
Distribution: Fedora 16
Posts: 251
Blog Entries: 24

Rep: Reputation: 31
Can I make id games use ALSA?


OSS does not work on my Computer, Can I make id Software Games (And other Programs) use ALSA, or SDL?
 
Old 10-09-2007, 03:14 PM   #2
i_grok
Member
 
Registered: Jun 2006
Location: Massachusetts
Distribution: Gentoo
Posts: 79

Rep: Reputation: 16
There are probably better ways to do this, but here is a simple workaround: aoss

This is a wrapper that causes all OSS calls to be forwarded to ALSA.

For example, if you normally would run Quake 3 with "q3", now run it with "aoss q3".
 
Old 10-09-2007, 04:20 PM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
I thought that alsa can emulate oss now. Check your kernel config.
 
Old 10-09-2007, 06:45 PM   #4
Chargh
Member
 
Registered: Apr 2004
Location: Seba Beach Alberta Canada
Distribution: Fedora 16
Posts: 251

Original Poster
Blog Entries: 24

Rep: Reputation: 31
Quote:
Originally Posted by Alien_Hominid View Post
I thought that alsa can emulate oss now. Check your kernel config.
How is this Done?
 
Old 10-10-2007, 01:22 AM   #5
z-vet
Member
 
Registered: Aug 2004
Location: Israel
Distribution: LMDE 5
Posts: 271

Rep: Reputation: 34
I have an ~/.openalrc:
Code:
;(define devices '(native alsa sdl esd arts null))
(define devices '(alsa sdl))

(define speaker-num 2)

; Standard config
(define alsa-out-device "hw:0,0")

; Config for usb-audio
;(define alsa-out-device "hw:1,0")

; For alsa-in support. Mainly for using voice chat.
;(define alsa-in-device "hw:0,0")

; Some drivers do not support select.
;(define native-use-select ;t)
Semicolon comments. Put your device in 'define alsa-out-device' line. I have two sound cards and can use one or another by commenting/uncommenting an appropriate line.
 
Old 10-10-2007, 01:39 AM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
cd /usr/src/linux
make xconfig

check device drivers > sound and then enable alsa oss mixer, sequencer, pcm (if not enabled)
make modules (if you chose them as modules) or make bzimage (if compiled into the kernel)
make modules install (to install new modules)
copy your new kernel into your boot dir
edit modules or groob or lilo config files and add your new kernel or tell them to load new modules

Last edited by Alien_Hominid; 10-10-2007 at 01:43 AM.
 
Old 10-10-2007, 10:18 AM   #7
Chargh
Member
 
Registered: Apr 2004
Location: Seba Beach Alberta Canada
Distribution: Fedora 16
Posts: 251

Original Poster
Blog Entries: 24

Rep: Reputation: 31
Quote:
Originally Posted by Alien_Hominid View Post
cd /usr/src/linux
make xconfig

check device drivers > sound and then enable alsa oss mixer, sequencer, pcm (if not enabled)
make modules (if you chose them as modules) or make bzimage (if compiled into the kernel)
make modules install (to install new modules)
copy your new kernel into your boot dir
edit modules or groob or lilo config files and add your new kernel or tell them to load new modules
Does this mean Rebuilding the Kernel?
 
Old 10-10-2007, 03:26 PM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Yes .
 
  


Reply



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
How to make games? bento Programming 21 03-18-2006 09:51 AM
What should i do to make games works perfect ? What should i do to make games works p GameMaker Linux - Games 3 02-05-2006 02:04 PM
Alsa on games makes the keyboard and mouse respond with a 15 sec. delay Ac1db0rN Linux - Hardware 4 03-24-2005 03:13 PM
wine and alsa and games amatin Linux - Software 0 03-27-2004 10:35 AM
Alsa and quake3 based games don't work borgware Linux - Hardware 1 01-08-2004 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration