wine monopolizes the sound

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
cyphaw
Level 2
Level 2
Posts: 12
Joined: Wed Mar 31, 2010 3:19 am

wine monopolizes the sound

Post by cyphaw »

Hello,

I have a sound problem with wine: when it is running, the sound works fine, but no other application can play any sound. If I have sound playing elsewhere and then launch wine, then wine do not play any sound.

I am using pulseaudio, debian sid 64 bits and I can play several sounds at the same time.
This problem happen even if pulseaudio is disabled, and with every wine version I tried (1.0.1, 1.2.3, 1.3.24).

I've seen a lot of posts saying to run wine through padsp or aoss, but when I do it, I get the following errors:

with aoss: ERROR: ld.so: object '/usr/lib/libaoss.so' from LD_PRELOAD cannot be preloaded: ignored.
with padsp: ERROR: ld.so: object 'libpulsedsp.so' from LD_PRELOAD cannot be preloaded: ignored.

The problem stays exactly the same (sound either in wine or the rest), it seems to be because of the fact that I am on a 64 bits OS.

I tried to download 32bits libraries libpulseaudiodsp.so and libaoss.so, the error messages change to those:
error while loading shared libraries: libalsatoss.so.0: wrong ELF class: ELFCLASS64

It concerns other libraries called after the first, I changed them to 32 bits versions (btw, it calls libraries from /usr/lib instead of /usr/lib32) but I still get errors such as
error while loading shared libraries: libpulsecommon-0.9.23.so: wrong ELF class: ELFCLASS32

Any help would be welcomed.

Thanks.
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm »

cyphaw I can bet what this problem is.

Number basically forget aoss and padsp instructions in most cases.

First stop winecfg tab audio set "Hardware acceleration" to emulation.

Number two pasuspender don't work on lots of sound cards and cause issue of exclusive access. Developer of pulseaudio will not listern to me and enable dmix when it disables pulseaudio or even just provide option to enable dmix when disabling pulseaudio.

Sound card without mixer giving direct access without dmix or pulseaudio results in exclusive access issue. cyphaw.

Also you need to fix some things never get the idea of copying 32 bit libraries into 64 bit library directory in an attempt to fix things you only make stuff worse.

On a 64 bit system /usr/lib should contain 64 bit versions. /lib/lib32 contains 32 bit versions.

Now if its loading the wrong ones after that is the preload script that needs altering. Please reverse the damage you have done before doing anything else.
cyphaw
Level 2
Level 2
Posts: 12
Joined: Wed Mar 31, 2010 3:19 am

Post by cyphaw »

Thanks for the answer.
oiaohm wrote:cyphaw I can bet what this problem is.

Number basically forget aoss and padsp instructions in most cases.

First stop winecfg tab audio set "Hardware acceleration" to emulation.
Yes, never seen that anywhere, I will try.
Number two pasuspender don't work on lots of sound cards and cause issue of exclusive access. Developer of pulseaudio will not listern to me and enable dmix when it disables pulseaudio or even just provide option to enable dmix when disabling pulseaudio.
Actually, I don't use pasuspender, I killed all pulseaudio related processes, and it apparently falled back to alsa (pulseaudio didn't respawn).

Sound card without mixer giving direct access without dmix or pulseaudio results in exclusive access issue. cyphaw.
Also you need to fix some things never get the idea of copying 32 bit libraries into 64 bit library directory in an attempt to fix things you only make stuff worse.

On a 64 bit system /usr/lib should contain 64 bit versions. /lib/lib32 contains 32 bit versions.

Now if its loading the wrong ones after that is the preload script that needs altering. Please reverse the damage you have done before doing anything else.
I know, it was just for testing. Some posts said that adding 32bits libs in lib32 helped, I did that, but then the scripts apparently tried to load some from lib, so I modified a few, of them, but reversed everything.
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm »

Actually, I don't use pasuspender, I killed all pulseaudio related processes, and it apparently falled back to alsa (pulseaudio didn't respawn).
Yep you have a sound card without a hardware mixer. Killing pulseaudio and not inserting dmix results in exclusive access problem. Basically you just did close to what the pasuspender script does.

You need a mixer of some form on a sound output or you have exclusive.

3 common options. Hardware on the sound card. Dmix from alsa and pulseaudio.
Locked