PDA

View Full Version : TeamSpeak and Regnum Online


ChadMC
01-14-2007, 10:57 PM
Does anyone know how I can use TeamSpeak and play Regnum Online at the same time with the sound working for both? I want to voice chat with my friend while we play. The audio drivers are conflicting. I've been trying to get it to work with a lot of google searching. I think I can get it to work using alsa-oss (command: aoss), but when i use that, the audio in teamspeak is very skippy. I'm not sure if the audio in regnum online is skippy, because the server seems to be down right now.

Arvenil
01-15-2007, 12:26 AM
Buy soundcard with hardware mixing :D

ChadMC
01-17-2007, 09:52 AM
Yes, but is there nothing I can try to get it to work? Because this same soundcard is capable of doing such things in windows, so I'm sure there must be something I can enable/change to get it to work in linux.

dejan
01-17-2007, 10:07 AM
I haven't seen that Regnum has support for that, ChadMC... What You refer at is something like what the opensource library libspeex (for more information: http://www.speex.org/ ) offers.
It would be really cool if speex functionality is incorporated into the Regnum client! :thumb_up:

Arvenil
01-17-2007, 02:24 PM
Im not sure but if TS and Regnum Online doesn't use alsa then is propably no solution for mixing sound from this two applications.

This two applications should use alsa.

Myxir
03-28-2007, 05:38 PM
its the "fault" of TeamSpeak... it does not use ALSA, it uses oss.
some people got it to work and others not. @ me it works cause i use two sound cards

ChadMC
03-28-2007, 11:00 PM
its the "fault" of TeamSpeak... it does not use ALSA, it uses oss.
some people got it to work and others not. @ me it works cause i use two sound cards

I've been thinking about doing this too... how do you have yours set up? What do you have each soundcard doing? Because it seems like you can only get TS and regnum to playback on separate sound cards, so how are you getting TS and regnum to playback through the same speakers/headphones?

Or am I thinking about this the wrong way...

Myxir
03-28-2007, 11:38 PM
I've been thinking about doing this too... how do you have yours set up? What do you have each soundcard doing? Because it seems like you can only get TS and regnum to playback on separate sound cards, so how are you getting TS and regnum to playback through the same speakers/headphones?

Or am I thinking about this the wrong way...

TS comes via my headset and the others via my surround sound system but i think its possible to get it out of the sound system by using some cables connecting the output of my onboardsound with the output of the other sound card.... dunno :p
i modified my .asoundrc a bit:


pcm.CA0106 {
type hw
card 0
}

ctl.CA0106 {
type hw
card 0
}

pcm.intel8x0 {
type hw
card 1
}

ctl.intel8x0 {
type hw
card 1
}



# Das dmix-Plugin wird definiert.
pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0666 # Andere Benutzer können ebenfalls dmix gleichzeitig nutzen
slave.pcm "card1"
slave {
# buffer_size kann bei Problemen der jeweiligen Karte angepasst werden.
period_time 0
period_size 1024
buffer_size 4096
# bei Störungen kann die Konvertierung auf die Rate 44100 eingeschaltet werden.
# rate 44100
# einige Soundkarten benötigen das exakte Datenformat (zB ice1712)
# format S32_LE
}
bindings {
0 0
1 1
}
}

# Das dsnoop-Plugin, welches es erlaubt, mehrere Programme gleichzeitig aufnehmen zu lassen.
pcm.dsnooper {
type dsnoop
ipc_key 2048
ipc_perm 0666
slave.pcm "card1"
slave
{
period_time 0
period_size 1024
buffer_size 4096
# bei Störungen kann die Konvertierung auf die Rate 44100 eingeschaltet werden.
# rate 44100
# einige Soundkarten benötigen das exakte Datenformat (zB ice1712)
# format S32_LE
}
bindings {
0 0
1 1
}
}

# Dies definiert unser Fullduplex-Plugin als Standard für alle ALSA-Programme.
pcm.duplex {
type asym
playback.pcm "dmixer"
capture.pcm "dsnooper"
}

pcm.card1 {
type plug
slave.pcm "duplex"
}


ca0106 is my main sound card and intel8x0 is my onboard sound card.
It works :) But in my opinion this is no good solution because not everyone has two sound cards.

€dit:
I forgot something: You need to set TeamSpeaks sound device to /dev/dsp1 in this case.

Arvenil
03-29-2007, 09:09 PM
Also you can buy some old cheap "sound blaster live!" card which comes with hardware mixing so you can forgot about problems with mixing sound.

Myxir
03-29-2007, 10:58 PM
i got one but it does not work -.-

onli
03-30-2007, 10:10 AM
It's not this easy. My soundcard has hardware-mixing, but if I start Teamspeak no other application will get sound. Alsa-based applications works parallel.
An easy solution:
start regnum with aoss, so it uses alsa. Then do the same with teamspeak, sometimes this work.
Skype, which uses alsa, will work if regnum uses alsa.

Arvenil
03-30-2007, 01:31 PM
What you means it doesnt work? Sound is not mixed or sound card doesnt work at all?:D

Myxir
03-30-2007, 05:13 PM
Sometimes it doesnt matter weather the sound card supports hardware mixing or not when using TeamSpeak...On some machines it works and on others it doesnt work. TS is a windows application. It doesnt work fine with Linux.

onli
03-30-2007, 06:05 PM
Arvenil, like I said: It is not that easy! (rtfm...)
In the beginning, OSS often did not support sharing even if it was supported by the hardware. ALSA drivers, as a rule, will support sharing if the hardware supports it. The ALSA library supports sharing even if the hardware does not support it, but this requires some explicit configuration. For applications that use OSS, the aoss wrapper can make them use ALSA instead, which improves things. Finally applications that use sound servers like esound or aRTS, most sound servers perform software mixing and support ALSA output. The individual cases are...
Source (http://www.google.com/search?client=opera&rls=en&q=oss+hardware+mixing&sourceid=opera&ie=utf-8&oe=utf-8)
The Linux-port of Teamspeak is crap.

twiistedkaos
04-02-2007, 12:03 AM
Maybe you should try running both teamspeak and Regnum with the program aoss? It allows mixing with oss based applications through alsa.

ArcticWolf
04-02-2007, 02:16 AM
Maybe you should try running both teamspeak and Regnum with the program aoss? It allows mixing with oss based applications through alsa.
The problem is that you can't launch regnumonline with aoss, you just can do it with the launcher...

twiistedkaos
04-02-2007, 06:55 AM
Well, they are some dirty linux tricks in order to get sound mixing to work between oss and alsa. I'll post how to do so later. It's a very ugly way, but works with some sound quality loss. Not really noticable unless you're listenting to some hardcore heavy metal :P

ArcticWolf
04-02-2007, 07:48 AM
Not really noticable unless you're listenting to some hardcore heavy metal :P


Hmm... Doing that all the time, but i think that listening to some DragonForce, using TS and playing Regnum at the same time won't make me notice it...

It would be a great help since with sound you can hear when your enemies get close to you or hit an ally.

ChadMC
04-02-2007, 08:17 AM
I've attempted to use aoss before, and it resulted in a horrible noise coming from my microphone to the other users. That, and the sound would skip in and out, etc..

I ended up installing a second sound card, using headphones for TS, and my regular speakers for regnum. I'd rather use one soundcard, but.. oh well.

Why can't the linux community come out with some better sound support for this type stuff, without having to do hardcore hacks?

twiistedkaos
04-02-2007, 08:52 AM
I've attempted to use aoss before, and it resulted in a horrible noise coming from my microphone to the other users. That, and the sound would skip in and out, etc..

I ended up installing a second sound card, using headphones for TS, and my regular speakers for regnum. I'd rather use one soundcard, but.. oh well.

Why can't the linux community come out with some better sound support for this type stuff, without having to do hardcore hacks?

The thing is, linux is open source, so there's many drivers and modules that do the same thing, In linux you have a choice on what you want to use, there is no "default".

Arvenil
04-02-2007, 10:58 AM
Its not true. This is no linux fault. This is teamspeak fault. ALSA for linux is now a standard. Look for example at skype... they didnt support alsa until version 1.3. But from version 1.3 it does. I dont know any opensource application that didnt support alsa. The only ones are the close one.

Linux community can't do nothing about this becouse teamspeak is no opensource. You can only use other program for voice chat but the problem is that most popular in windows is teamspeak.

onli
04-02-2007, 02:32 PM
The problem is that you can't launch regnumonline with aoss, you just can do it with the launcher...
If you launch the rolauncher with aoss, it should be fine. I just tried again, it makes the difference.

Arvenil: is there any usable alternative?

twiistedkaos
04-02-2007, 07:54 PM
Its not true. This is no linux fault. This is teamspeak fault. ALSA for linux is now a standard. Look for example at skype... they didnt support alsa until version 1.3. But from version 1.3 it does. I dont know any opensource application that didnt support alsa. The only ones are the close one.

Linux community can't do nothing about this becouse teamspeak is no opensource. You can only use other program for voice chat but the problem is that most popular in windows is teamspeak.

I'm not going to quite argue with you, just clear some things up. ALSA is not the linux standard, it most likely never will be. ALSA may be the most popular sound module among new linux users, but it's not a standard. I still know of a ton of applications, like openal which use oss, and a lot of people that still use oss. Oss is still being maintained and developed, as is alsa.