how to make/run startup scripts/commands
hello. i hate these noobish questions that i cant find answers to, so here it goes.
in order to run a program called TeamSpeak and a game (ET and RTCW) at the same time (two programs requiring sound) i need to first disable the input on the games, because TeamSpeak uses the input, and two programs cant do that at the same time through ALSA (im told) anyway, i run these commands to get the programs to work: echo "et.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss echo "et.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss echo "wolf.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss echo "wolf.x86 0 0 disable" > /proc/asound/card0/pcm0c/oss well, each time i restart my comp, i need to re-enter these commands. so, how can i get these commands to run at startup? do i put them in their own script/config or in an existing one or what? please let me know |
you can put these commands in the /etc/rc.d/rc.local file, everytime it boots up, i'll run these commands for you
|
thanks a lot man, i dropped em in there, and it works great now
thanks again :) |
To go further, with your question about alsa--
It really depends on your soundcard. Some soundcards have multiple channels for input, whereas some soundcards have only one. Mine happens to have 4, which surprises me because it's a cheap onboard AC'97 knock-off. Alsa is perfectly capable of using all the input channels. Mine are controled by using alsamixer, and moving all the way to the right, where I see several DXA channels, 1-4. If your card has only one, then the only solution I know of to have two programs access sound at the same time is with what's called a sound server. It combines two sources and mixes them down to one, which gets sent to the soundcard's single channel. Esound (gnome/enlightenment), Arts (kde), and JACK (pro audio applications) all do that. --Shade |
All times are GMT -5. The time now is 06:22 PM. |