TeamSpeak und Gamesound: Unterschied zwischen den Versionen

Aus Linupedia.org
Wechseln zu: Navigation, Suche
 
K
 
(4 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
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''
Zeile 60: Zeile 59:
 
  fi   
 
  fi   
 
</code>
 
</code>
 +
 +
 +
''Beispiel für eine Scriptableitung (bei mir, TomcatMJ, im Einsatz, aufzurufen als User root):''
 +
 +
directsoundallgames.sh
 +
<code>
 +
#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
 +
</code>
 +
 +
''--[[Benutzer:TomcatMJ|TomcatMJ]] 06:22, 17. Aug 2006 (CEST)''

Aktuelle Version vom 17. August 2006, 04:22 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 Scriptableitung (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

--TomcatMJ 06:22, 17. Aug 2006 (CEST)