[ut2004] voice chat

rob larkin manifold at manifoldone.com
Sun Feb 15 16:10:02 EST 2004


Gian Paolo Mureddu wrote:
> rob larkin wrote:
> 
>> Aaron Gyes wrote:
>>
>>> On Fri, 2004-02-13 at 15:21 -0800, rob larkin wrote:
>>>
>>>
>>>> Is there a readme or how-to somewhere on how to setup my environment 
>>>> so that voice chat will work with ut2004?  I'm using a sblive 
>>>> (emu10k) under alsa SuSE 8.2.  My mic works.  When I join a server I 
>>>> do automatically join the team channel just like in windows, but my 
>>>> mic is on all the time.  How do I make the "voice activation key" work?
>>>
>>>
>>>
>>>
>>> Icculus said yesterday that it will probably not work with native ALSA
>>> backend of OpenAL, and might not work with ALSA's oss emulation. Bad
>>> because I can only get surround working with ALSA. :(
>>
>>
>>
>> Ok, I've pretty much given up on making it work with ALSA and I'm 
>> considering getting rid of ALSA for OSS just for this game.  It sucks 
>> because so much depends on ALSA.  I have two questions I hope someone 
>> on this list can answer:
>>
>> Has anyone confirmed that the voice chat feature works with OSS?  I'd 
>> hate to go thru the trouble just to find out it doesn't work anyway.
>>
>> Does anyone have experience with changing from ALSA to OSS "on the 
>> fly"?  I mean using a bash script to shut down ALSA, remove the ALSA 
>> modules, load the OSS driver etc.  And of course a script to go back 
>> to ALSA, maybe it could setup as a ut2004 start script like in init.d
>>
>> Thx,
>>
>> }MB{MANIFOLD-recruiting at www.clan-mb.net (Rob)
>>
>>
> I can state I have experience going back and forth with ALSA and OSS on 
> the fly. And a script may be as simple as this:
> 
> I Wrote this to see if OSS instead of ALSA would get rid of sound 
> "artifacts" in Diablo 2 trhough WineX...
> 
> #!/bin/bash
> #
> # Script para que al correr Diablo II Lord Of Destruction se cambie 
> dinámicamente el driver de
> # sonido utilizado en el sistema, de ALSA a OSS y viceversa, al salir 
> del juego.
> 
> ALSA=`lsmod | grep snd-emu10k1`
> 
> for i in $ALSA
> do
>    if [ "$ALSA" == "snd-emu10k1" ]
>    then
>        sudo service alsasound stop
>        sudo modprobe emu10k1
>    else
>        echo "ALSA driver not loaded!"
>    fi
> done
> 
> while :
> do
>    if [ `lsmod | grep emu10k1` == "emu10k1" ] || [ "$OSS" == "emu10k1" ]
>    then
>        D2
>    else
>        echo "The OSS sound driver could not be loaded"
>        echo "Check your configuration"
>        exit
>    fi
>    break
> done
> 
> OSS=`lsmod | grep emu10k1`
> 
> for j in $OSS
> do
>    if [ "$OSS" == "emu10k1" ]
>    then
>        sudo rmmod emu10k1
>        sudo service alsasound start
>    else
>        echo "OSS driver not loaded!"
>    fi
> done
> 
> Sorry for the Spanish text, it translates to something like this:
> 
> Scritp to make dynamical chages to the OSS and ALSA driver when running 
> Diablo 2 Lord Of Destruction.
> 

Thanks Gian, I'll use your script as a base and see if I can write my 
own for ut2004.

Rob




More information about the ut2004 mailing list