PDA

View Full Version : Howto Teamspeak + Oss game (Using Cedega)


RoXoR
18-02-2007, 17:16
Maybe it works, maybe it doesn't, but here's my solution to get teamspeak working with games like Wolfenstein Enemy Territory.

To get it working you do need Cedega (i use version 5.2.3).

Download and install the alsa-oss wrapper tool:
http://dir.filewatcher.com/d/Debian/i386/sound/alsa-oss_1.0.8-1_i386.deb.46754.html
(Or alsa-oss in package manager)

Make a new file named something like teamspeakalsa.sh and paste the following lines in it:
#!/bin/sh
#
# This startup script will set the correct library path
# and then startup the teamspeak binary.
#
# Author: Florian Harbich for teamspeak support forum
# this script can be freely used and modified
# as long as this reference to me is kept.
#

##### config section

# path where ts2 client is installed
TS2_INSTALLDIR="/path/to/TeamSpeak2RC2"

##### do not modify below this line

# remove trailing / from dirname
TS2_INSTALLDIR=${TS2_INSTALLDIR%/}

# set dynamic library path to include ts2 install dir
export LD_LIBRARY_PATH=$TS2_INSTALLDIR:$LD_LIBRARY_PATH

# start ts2 client using alsa oss wrapper
aoss /path/to/TeamSpeak2RC2/TeamSpeak.bin "$@"

If you run this file now it should load the teamspeak client with alsa.

Now download the windows version of your game (in this case Wolfenstein Enemy Territory) and install it with Cedega.

Now save the following as ~/.asoundr
#
# DMIX input device
#
pcm.!output {
type dmix
ipc_key 1234
slave {
pcm "hw:0,0"
period_time 0
# period_size 1024
period_size 2048
buffer_size 8192
# buffer_size 32768
rate 48000
}
slowptr true
}

#
# DSNOOP output device
#
pcm.!input {
type dsnoop
ipc_key 1234
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
rate 48000
}
}
#
# ASYM duplex device
#
pcm.!duplex {
type asym
playback.pcm "output"
capture.pcm "input"
}

#
# Make the duplex device default
#
pcm.!default {
type plug
slave.pcm "duplex"
}

#
# OSS Compability
#
pcm.!dsp0 {
type plug
slave.pcm "duplex"
}

ctl.!mixer0 {
type hw
card 0
}

And go to Cedega's global settings -> Audio

Let the CTL device stay at hw, but change the PCM device in duplex.

The next time you want to play the game with Teamspeak, you load teamspeak by the created script, and you load your game in Cedega.

NOTE: In Ubuntu the sound system should be disabled, System Settings -> Sound System -> Enable the sound system (Should be unchecked) I don't really know how this works in other distributions.