scripting help

Discuss Programming

scripting help

Postby Ice9 » Fri Apr 27, 2007 10:34 am

In short, q3 sound is broken if you use anything else than OSS and only with some specific soundcards - at least this is what I understood from what I read around.

I found some post telling that these two commands fixed the problem
Code: Select all
echo "quake3.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss
echo "quake3.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss

I tried it and it works, but only until the next reboot ...

So I wanted to put this into a script, to be able to execute those two commands and launch Q3 in a row.
Only problem, the commands have to be run as root, and the script execution stops as soon as I su ...

Any pointers to what I could do?

Tnx.
Ice9
guru
guru
 
Posts: 577
Joined: Thu Jan 09, 2003 12:40 am
Location: Belgium

Postby Void Main » Fri Apr 27, 2007 10:51 am

Just add those lines to the end of your /etc/rc.local script.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest