No sound in wine under amd_64

Bug #210572 reported by the_vorpal_blade
8
Affects Status Importance Assigned to Milestone
ia32-libs (Ubuntu)
Fix Released
Medium
Unassigned
wine (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: wine

by default wine can't output sound, since it does not have native pulseaudio drivers.
A workaround is to use padsp to wrap wine, however this does not work in the default 64 bit install, since libpulsedsp.so is not in /usr/lib32.

error message is:
ERROR: ld.so: object 'libpulsedsp.so' from LD_PRELOAD cannot be preloaded: ignored.

If I copy libpulsedsp.so from the i386 version of pulseaudio-utils then padsp wine works fine.

I'm using wine-0.9.58 under fully updated hardy.
pulseaudio is at 0.9.9-1ubuntu4
pulseaudio-utils is at 0.9.9-1ubuntu4

Related branches

Revision history for this message
Scott Ritchie (scottritchie) wrote :

Can Wine's alsa drivers work without wrapping them in pulseaudio? There has been some upstream complaints about pulseaudio's ALSA wrapper not having low enough latency for Wine's needs.

Changed in ia32-libs:
importance: Undecided → Medium
Revision history for this message
wvengen (wvengen) wrote :

Can libpulsedsp.so be added to the ia32-libs package? Copying the file from a 32bit package into /usr/lib32 works for me too.

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

there could do with being a padsp for 32 bit as well to wrap it properly.

Revision history for this message
wvengen (wvengen) wrote :

padsp is just an arch-independent shell script that sets some variables and LD_PRELOADs libpulsedsp.so.
fyi, libpulse.so.0 and related libraries are in ia32-libs already.

Revision history for this message
Scott Ritchie (scottritchie) wrote :

I can't reproduce this on Hardy amd64 - sound seems to work just fine in Wine for me. I'm using ALSA.

Revision history for this message
wvengen (wvengen) wrote :

(to Scott:) Did you upgrade from Gutsy? Hardy uses pulseaudio by default, but during upgrade it wasn't always automatically enabled for each user; one needs to go to the sound settings and enable 'Enable software sound mixing (ESD)'. When pulseaudio isn't playing audio, it may release the audio device so ALSA applications can grab it. But if you're playing music or have a Youtube movie opened in Firefox for example, wine's ALSA module won't be able to open the device since it's in use by pulseaudio. The solution is then to use OSS in wine with padsp. In short:
- make sure pulseaudio is active
- play something using totem/rhythmbox/whatever
- output audio in wine (it'll fail unless OSS is used with padsp)
solution:
* install 32bit libpulsedsp.so in /usr/lib32
* run `padsp winecfg` and select OSS output (check that wave in&out have a pulseaudio device)
* run your wine sound application using `padsp wine mysoundapp.exe`

Revision history for this message
Scott Ritchie (scottritchie) wrote :

Yeah, I did upgrade from Gutsy. At least it works when nothing else is playing sound.

I guess we should add pulseaudio-utils to ia32-libs package list then. http://packages.ubuntu.com/hardy/i386/pulseaudio-utils/filelist

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ia32-libs - 2.2ubuntu8

---------------
ia32-libs (2.2ubuntu8) hardy; urgency=low

  * Freshen packages.
  * Remove libldap2, add libldap-2.4-2.
  * Add librsvg2-2, librsvg2-common, libgsf-1-114, libcroco3. Partial #162993.
  * Add pulseaudio-utils. LP: #210572.

 -- Matthias Klose <email address hidden> Tue, 08 Apr 2008 18:41:07 +0000

Changed in ia32-libs:
status: New → Fix Released
Revision history for this message
Ernst Persson (ernstp) wrote :

Isn't this a dupe of #182731 which would be a better, more transparent and more general solution?
(Letting wine use 32-bit alsa plugin /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so)

Revision history for this message
wvengen (wvengen) wrote :

Fixed in last update, thanks!
Addition of alsa modules would be good (no padsp needed), but I still think there is a place for padsp in case of 32bit oss applications. (and currently wine's oss module has better midi device naming than alsa, but that's an issue that should be solved in wine's alsa module)

Changed in wine:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.