wine audio blocks itself with other audio

Questions about Wine on Linux
Locked
C4DJunkie
Newbie
Newbie
Posts: 4
Joined: Sat Feb 15, 2014 8:17 am

wine audio blocks itself with other audio

Post by C4DJunkie »

Hello Community,

I am running Debian Jessie with Cinnamon, and therefor Pulseaudio, and Wine 1.6.2
and as many people i have problems with the pulseaudio sound. While the sound itself works fine,
the audio devices seems to block each other.
What i tried so far:
change gstreamer-properties to use alsa directly: no change at all
change audio driver of wine to oss: no sound at all
follow the instructions on http://wiki.winehq.org/WineAndPulseaudio:

while the console output while playing the testsound from $ ALSA_DEFAULT_PCM="plug:dmix" winecfg reads: The dmix plugin supports only playback stream i still hear no sound.

full console output:

Code: Select all

benny@e530c ~ $ ALSA_DEFAULT_PCM="plug:dmix" winecfg
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so: cannot open shared object file: No such file or directory
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
ALSA lib conf.c:3314:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
I also checked alsamixer, and everything in my soundcard is turned up.

Any help is appreaciated
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine audio blocks itself with other audio

Post by dimesio »

Do you have alsa-plugins installed? You need it, and if your system is 64 bit, make sure you have all the necessary 32 bit libraries installed, too.

FYI, the wiki page you looked at is pretty old. http://wiki.winehq.org/Sound is more up-to-date.
C4DJunkie
Newbie
Newbie
Posts: 4
Joined: Sat Feb 15, 2014 8:17 am

Re: wine audio blocks itself with other audio

Post by C4DJunkie »

is the libasound2-plugins package the alsa-plugins i need?
i got that one installed. only the 64 bit version tough.

for 32 bit libraries i only have libasound2:i386 and libasound2-dev:i386 as the other alsa packages dont seem to be multiarch and would break most of my system l.
Are they enough?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine audio blocks itself with other audio

Post by dimesio »

Packaging varies greatly by distro and I don't use Debian, so I don't know the specific packages you need. I can tell you that on 64 bit openSUSE the packages I have installed include alsa, alsa-plugins, alsa-plugins-32bit, alsa-plugins-pulse, alsa-plugins-pulse-32bit, libasound2, libasound2-32bit, libpulse0, and libpulse0-32bit. You might want to ask on the Debian forum what the equivalent packages are in Debian.
C4DJunkie
Newbie
Newbie
Posts: 4
Joined: Sat Feb 15, 2014 8:17 am

Re: wine audio blocks itself with other audio

Post by C4DJunkie »

after further informing myself i installed some more 32bit libraries and should now have everything i need
but there is still no change. i only get audio in one or the other.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine audio blocks itself with other audio

Post by dimesio »

C4DJunkie wrote:i only get audio in one or the other.
What do you mean by "one or the other"?
C4DJunkie
Newbie
Newbie
Posts: 4
Joined: Sat Feb 15, 2014 8:17 am

Re: wine audio blocks itself with other audio

Post by C4DJunkie »

by that i mean, as described above, that i only get either audio in wine or outside of wine,
depending on whether wine starts first or for example firefox.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine audio blocks itself with other audio

Post by dimesio »

Wine depends on the host system for audio mixing. If your system doesn't support hardware mixing, you need software (e.g., Pulseaudio, dmix) to handle multiple audio streams. Looking back, it appears you have Wine accessing the hardware directly; that would be why you can only have one audio stream. Read the wiki page on Sound that I linked to above.
arkindal
Level 1
Level 1
Posts: 7
Joined: Sat Sep 24, 2011 7:45 am

Re: wine audio blocks itself with other audio

Post by arkindal »

OP, I'm on debian myself and I have the same issue, I would really appreciate it if you could share any solution you find, I'll do the same if I find the solution before you.
Locked