LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   Can I make id games use ALSA? (https://www.linuxquestions.org/questions/linux-games-33/can-i-make-id-games-use-alsa-590585/)

Chargh 10-09-2007 01:46 PM

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?

i_grok 10-09-2007 03:14 PM

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".

Alien_Hominid 10-09-2007 04:20 PM

I thought that alsa can emulate oss now. Check your kernel config.

Chargh 10-09-2007 06:45 PM

Quote:

Originally Posted by Alien_Hominid (Post 2918850)
I thought that alsa can emulate oss now. Check your kernel config.

How is this Done?

z-vet 10-10-2007 01:22 AM

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.

Alien_Hominid 10-10-2007 01:39 AM

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

Chargh 10-10-2007 10:18 AM

Quote:

Originally Posted by Alien_Hominid (Post 2919300)
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?

Alien_Hominid 10-10-2007 03:26 PM

Yes .


All times are GMT -5. The time now is 04:08 PM.