Startux.de

Make wine use pulseaudio on gentoo amd64 PDF Print E-mail
  
Wednesday, 26 March 2008 08:59

During the upgrade of my server to Ubuntu 8.04 LTS pulseaudio was installed as the central sound server. By using pulseaudio it is possible to receive, mix and play multiple audio streams simultaneously, even from different machines, to an e.g connected to 5.1 surround system. That way I am able to receive radio streams on the server and at the same time getting sound from games played on a different machine using the same audio equipment.

I enjoy playing Everquest 2 using wine on my gentoo amd64 box. Works like a charm currently using wine version 1.1.3 btw !
Playing games on linux leads to wine most of the time. Wine is a 32bit application ( guess why Wink ) , my gaming box runs gentoo amd64. Wine uses either alsa or OSS to get sound working. Despite the favor for alsa by the wine developers, OSS seems to work better at least for Everquest 2. In order to route OSS audio to a pulseaudio server, you have to use padsp to wrap audio playback. See recommended Pulseaudio OSS setup.

That's where the trouble started.
padsp needs libpulsedsp.so 32bit, which is currently (ebuild 20071125) not part of the emul-linux-x86-soundlibs ebuild. I setup a chroot32 following the quite good chroot32 guid on AMD64 in order to compile the needed libraries myself. If you don't want to compile them yourself you can get them here until they are added to the upstream ebuild (bug already filed). Extract the archive under /usr/lib32.

Additionally you need various alsa plugin 32bit libraries to get rid of all errors and warnings. All libraries for the alsa plugins from the alsa-plugins ebuild are also missing in the emul package, so if you want get them here. This archive needs to extracted under /usr/lib32/alsa-plugins.

Update: I added libsamplerate.so and libpulse-simple.so. Amongst others, this should make libflashsupport work, thx Per for the point.

Update: By using the latest emulation libraries (app-emulation/emul-linux-x86-soundlibs-20091231) from upstream pulseaudio works !!

Last Updated ( Sunday, 10 January 2010 00:54 )
 
Comments (4)
Compiling Libs
4 Tuesday, 16 June 2009 00:33
toad
Stefan, I've just set up the chroot and gone through the motions of emerging alsa-plugins and pulseaudio in there so I can use the latest versions of these libs, but things don't seem to be loading right. Specifically, I continue to get the error: "ALSA lib control.c:874:(snd_ctl_open_conf) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_ctl_pulse.so".

I can verify that the file is there, and I've tried linking it and copying it. Any ideas?

Thanks,

Toad
doesn't work for pulseaudio > 0.9.9
3 Sunday, 08 March 2009 19:59
Christopher
Hmm, it worked well for me with gnome 2.22 and pulseaudio 0.9.9. but after update gnome to 2.24 there was an update of pulseaudio to 0.9.14. and with this version your libs doesn't work anymore ... when i type "padsp winecfg" there are no oss pulseaudio devices.
alsa-lib?
2 Wednesday, 16 July 2008 23:22
Thomas
wine wanted the files you said should be in alsa-plugins to be in alsa-lib. Works great then =)
pulseaudio
1 Saturday, 05 July 2008 07:30
muxx
Thanks, works great :)

Add your comment

Your name:
Subject:
Comment:
Copyright © 2010 Startux.de. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.