TeamSpeak und Gamesound

Aus Linupedia.org
Version vom 16. August 2006, 10:37 Uhr von TomcatMJ (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche


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