Search:  
Gentoo Wiki

HOWTO_Ventrilo_Via_Wine

Wikipedia has an article on:
Ventrilo

Contents

Introduction

This guide will show you how to run Ventrilo using Wine. This guide will not show you how to setup ALSA, though it is crucial you have a working setup for this to work. Please refer to the ALSA Guide, or to the official docs for ALSA setup help.

Requirements

Installing & Configuring Wine

As root run (you can optionally provide support for sound systems e.g.: jack, arts, esd:

  1. USE="jack arts esd" emerge wine):
    # emerge -a app-emulation/wine
As user run:
$ winecfg

Go to the Audio tab and make sure under ALSA Sound there is both Input and Output. Set Hardware Acceleration to Emulation. Also, if you added support for a sound server just make sure the same applies under the sound server. Now click Ok.

For more detailed instructions, check out the Wine guide.

If you do not have an input stream in winecfg under alsa and you get an error like this "The dmix plugin supports only playback stream" on the command line, its because your ~/.asoundrc is not setup correctly for dmixing. Dont feel bad I dont think the guide on this wiki for also tells you this info.

You should have 5 sections at the very least! The following is some of my config file.

pcm.nforce-hw {
        type hw
        card 0
}

pcm.nforce-dmix {
        type dmix
        ipc_key 1234
        ipc_perm 0660
        slave {
                #pcm "hw:0,0"
                pcm "nforce-hw"
                period_time 0
                period_size 1024
                buffer_size 4096
                #rate 44100
                rate 48000
        }
}

pcm.nforce-dsnoop {
        type dsnoop
        ipc_key 2468
        ipc_perm 0660
        slave {
                pcm "nforce-hw"
        }
}

pcm.nforce-asym {
        type asym
        playback.pcm "nforce-dmix"
        capture.pcm "nforce-dsnoop"
}

pcm.!default {
        type plug
        slave.pcm "nforce-asym"
}


If you get a message about missing the GSM codec, follow the instructions from WINE's website to copy over the codec file. WINE GSM Codec Installation

Installing Ventrilo

Due to restrictions you must go to the Ventrilo website and download the Windows client yourself. Once you've downloaded the .exe to a place you can access run this command as user:
$ wine ventrilo-2.3.0-Windows-i386.exe

Configuring Ventrilo

Now that Ventrilo has been installed using WINE. Open up Ventrilo using wine like so:
$ wine "C:\Program Files\Ventrilo\Ventrilo.exe"

Add a new user and click the Setup button. Uncheck Use DirectInput to detect Hotkey also, do not check any of the Use DirectSound options for the output or input devices.

Getting Your Microphone to Work

This part you are going to have to experiment on what levels to set your microphone volume to.

Getting Ventrilo Working With World of Warcraft

This is for people for whom WoW works best in ALSA, full hardware acceleration.

Where Ventrilo will work fine with OSS wrapped by aoss, WoW sound sometimes refuses to work with OSS and so also wrapped by aoss.

1.) Run `winecfg` select only ALSA, and set Hardware Acceleration to "Software Emulation" while keeping the "Software Emulation" checkbox unticked, apply and click OK. Then use wine to load Ventrilo. Uncheck all DirectSound options and DirectInput options. It is possible that you have a mixer but no mux or line. This is perfectly ok, just test via monitor to see that all is functional. If not, open your sound mixer settings via `alsamixer` and hit F4 to show input devices, highlight Mic and hit space bar, highlight Capture and hit space bar and try again.

2.) With ventrilo running, run `winecfg` again and change from "Software Emulation" to "Full," apply and click OK. Then, load WoW via wine. If the sound is working in WoW, test to see if you can still hear/speak to Ventrilo.

Troubleshooting:

After being connected for a while to Ventrilo, the voice transmission may suddenly stop working in both directions, and attempts to reconnect to the server will only freeze Ventrilo. It is uncertain why this is, but a full reboot fixes the issue.

Push to Talk Hotkey Hack

From http://appdb.winehq.org

An experimental program has been hacked together by Toni Spets which allows using a Push-To-Talk key from outside of a wine window. Please try it here [updated below] and give feedback.

Feedback: This script works very nice. All info you need is in the readme Mild understanding of programming helps if you run into problems, though. A problem I had was that the program was programmed to search for another name on the Ventrilo-window that I had, but that was very easy to fix by tweaking on line in the source-code. Besides that I think it worked great.

Feedback#2: I have this script working as well. The only real problem I ran into was that I didn't have read access to /dev/input/event0 (using Ubuntu). This can be changed by root, though currently this is reset with every boot. This is mentioned in the readme, however being new to linux took me a while to figure out after much debugging. Also note that the ventriloctrl program by default sends 'a' to ventrilo, no matter what you set the listen key to be.

I used some of Toni Spets' solution but made changes for multi-user. I used actkbd and simplified ventriloctrl to send the desired key and status (no loop or file io). Then set actkbd to run from udev using the included rules file. memeyou@memeyou.net

Feedback#3: I have hacked together an update to the original code useing xevie instead of trying to sniff key events. I couldnt get a hold of Toni "hifi" Spets as his email address no longer exists? Anyway i re-upload this thing with the changes. Read the readme and change log for info/contact ventriloctrl-0.4.tar.gz Anyone interested in creating a SF project?

External Links

Retrieved from "http://www.gentoo-wiki.info/HOWTO_Ventrilo_Via_Wine"

Last modified: Tue, 16 Sep 2008 12:49:00 +0000 Hits: 22,995