TeamSpeak und Gamesound: Unterschied zwischen den Versionen
K |
|||
Zeile 1: | Zeile 1: | ||
[[Category:Scripte]] | [[Category:Scripte]] | ||
− | Die Scripte aus '[[Mehrere Programme gleichzeitig Sound ausgeben]] | + | Die Scripte aus '[[Mehrere Programme gleichzeitig Sound ausgeben]]' in der direkt nutzbaren Fassung: |
− | ' in der direkt nutzbaren Fassung: | ||
''KDE-Version'' | ''KDE-Version'' |
Version vom 16. August 2006, 21:30 Uhr
Die Scripte aus 'Mehrere Programme gleichzeitig Sound ausgeben' in der direkt nutzbaren Fassung:
KDE-Version
kdeteamspeaksprepare.sh
#!/bin/sh
kdesu "echo teamspeak ' 0 0 direct non-block '>/proc/asound/card0/pcm0p/oss"
kdesu "echo teamspeak ' 0 0 direct'>/proc/asound/card0/pcm0c/oss"
kdedirectsound.sh
#!/bin/sh
kdesu "echo $1' 0 0 direct non-block'>/proc/asound/card0/pcm0p/oss"
kdesu "echo $1' 0 0 disabled'>/proc/asound/card0/pcm0c/oss"
if test $2
then $2
fi
Gnome-Version
gnometeamspeaksprepare.sh
#!/bin/sh
gnomesu "echo teamspeak ' 0 0 direct non-block '>/proc/asound/card0/pcm0p/oss"
gnomesu "echo teamspeak ' 0 0 direct'>/proc/asound/card0/pcm0c/oss"
gnomedirectsound.sh
#!/bin/sh
gnomesu "echo $1' 0 0 direct non-block'>/proc/asound/card0/pcm0p/oss"
gnomesu "echo $1' 0 0 disabled'>/proc/asound/card0/pcm0c/oss"
if test $2
then $2
fi
Generische Version
teamspeaksprepare.sh
#!/bin/sh
sudo "echo teamspeak ' 0 0 direct non-block '>/proc/asound/card0/pcm0p/oss"
sudo "echo teamspeak ' 0 0 direct'>/proc/asound/card0/pcm0c/oss"
directsound.sh
#!/bin/sh
sudo "echo $1' 0 0 direct non-block'>/proc/asound/card0/pcm0p/oss"
sudo "echo $1' 0 0 disabled'>/proc/asound/card0/pcm0c/oss"
if test $2
then $2
fi
Beispiel für eine Scriptabeitung (bei mir, TomcatMJ, im Einsatz, aufzurufen als User root):
directsoundallgames.sh
#Alles auskommentierte ist zur Zeit nicht oder nicht mehr installiert
echo "erase">/proc/asound/card0/pcm0p/oss
#echo "cedega 0 0 direct">/proc/asound/card0/pcm0p/oss
#echo "cedega_timedemo 0 0 direct">/proc/asound/card0/pcm0p/oss
#echo "winex3 0 0 direct">/proc/asound/card0/pcm0p/oss
#echo "winex 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "wine 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "firefox-bin 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "fuhquake-gl.glx 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "quake2 0 0 direct">/proc/asound/card0/pcm0p/oss
#echo "quake3.x86 0 0 direct non-block partial-frag">/proc/asound/card0/pcm0p/oss
#echo "ioquake3.x86 0 0 direct non-block partial-frag">/proc/asound/card0/pcm0p/oss
echo "quake3.x86_64 0 0 direct non-block partial-frag">/proc/asound/card0/pcm0p/oss
#echo "ioquake3.x86_64 0 0 direct non-block partial-frag">/proc/asound/card0/pcm0p/oss
#echo "quake3-smp 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "quake4.x86 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "doom3.x86 0 0 direct">/proc/asound/card0/pcm0p/oss
#echo "wolfsp.x86 0 0 direct">/proc/asound/card0/pcm0p/oss
#echo "wolf.x86 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "et.x86 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "doom.x86 0 0 non-block no-silence ">/proc/asound/card0/pcm0p/oss
echo "armyops-bin 0 0 direct">/proc/asound/card0/pcm0p/oss
#echo "ut2003-bin 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "ut2004-bin-linux-amd64 0 0 direct">/proc/asound/card0/pcm0p/oss
#echo "ut2004-bin 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "xawtv4 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "xmms 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "amarokapp 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "nexuiz-sdl 0 0 direct">/proc/asound/card0/pcm0p/oss
#echo "amarok-helix-helper 0 0 direct">/proc/asound/card0/pcm0p/oss
echo "helix 0 0 direct">/proc/asound/card0/pcm0p/oss
#echo "crx 0 0 direct">/proc/asound/card0/pcm0p/oss