You are not logged in.

#1 2010-02-12 02:54:26

lasu1
Member
Registered: 2010-02-10
Posts: 83

[SOLVED] Wine + (Other sound), pulseaudio, alsa :)

Hello all,

I'm a noob Arch-er, and I am, over all loving it. I adore the speed, responsiveness, and just over all ease of use that Arch provides. I really want to make it my default OS (using Mint now). I've overall had no problems with install, using the AUR, etc...BUT

I'm having one problem that is driving me bonkers.

How can I get wine to work with another sound playing (like Mangler?)

I've tried with Pulseaudio -- no luck there. Pulse does not seem to recognize Wine.
I've also tried ripping Pulse out and replacing it with ALSA.  This doesn't seem to work either. I'm able to play sound fine with Alsa; however, DMIX doesn't seem to work (even after adding bits of code from the Arch wiki). Actually, with Alsa, I'm unable to play more than one sound through an output.  I've also tried tweaking Wine's audio settings: output to OSS/ALSA, etc...I've been unable to find success sad

I've tried various versions of wine to see if I can get this fixed. There is an entry in the AUR called "Winepulse;" however, it is broken.

Does anyone have any ideas I could try out? I've been able to get this working in other distros, so that leads me to believe that there is something I've not done right yet, in Arch.

Thanks!

EDIT: I forgot to add, I'm using 64 bit arch/gnome atm.

EDIT: This was solved (months ago, but I didn't update the thread until now.). I got DMIX to work. See the bottom of the thread for remarks.

Last edited by lasu1 (2010-04-14 23:23:07)

Offline

#2 2010-02-12 05:41:15

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

Use wine, select OSS output, run with padsp pre-pended, pulseaudio is your underlying sound system.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2010-02-12 21:29:34

lasu1
Member
Registered: 2010-02-10
Posts: 83

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

Hmm...well, that didn't work. I tried to reinstall and run wine with OSS/pulse underlying with pulse wrapper...wine would not play sound through either OSS/ALSA now sad

Bah...this is nutso smile There must be a way to do this, as I can do it in other distros. Any advice?

EDIT: Also, when I try to install the wine-pulse_64 from the AUR, I get this error:

pngformat.c:62: error: 'png_set_gray_1_2_4_to_8' undeclared here (not in a function)
pngformat.c:62: warning: type defaults to 'int' in declaration of 'ppng_set_gray_1_2_4_to_8'
pngformat.c: In function 'PngDecoder_Initialize':
pngformat.c:285: error: called object 'ppng_set_gray_1_2_4_to_8' is not a function
make[2]: *** [pngformat.o] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-root/aur-wine-pulse_64/wine-pulse_64/src/wine-1.1.33/dlls/windowscodecs'
make[1]: *** [windowscodecs] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-wine-pulse_64/wine-pulse_64/src/wine-1.1.33/dlls'
make: *** [dlls] Error 2

Last edited by lasu1 (2010-02-12 22:02:12)

Offline

#4 2010-02-12 22:02:35

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

lasu1 wrote:

DMIX doesn't seem to work

See ALSA wiki and the fuser command shown there.

Offline

#5 2010-02-13 01:21:16

lasu1
Member
Registered: 2010-02-10
Posts: 83

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

I dunno...I've gone back to Pulse; unfortuneatly, I don't think I'll be able to get it working until the wine-pulse_64 package is updated. I tried building it numerous ways with no luck, it complains about needing the libpng14 thing...I tried getting it to work with a slightly altered PKGBUILD, but I haven't had any luck (I get out of my depth pretty quickly trying to compile these things...I can do the straightforward stuff, but not the complex routines sad )  I think I'm best off just waiting until the patch is updated in the AUR, unless anyone has any ideas or has been able to get it to work without pulseaudio.

Offline

#6 2010-02-13 08:32:24

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

@lasu1 just update it to 1.1.38 and use the patch that is in our trunk for libpng.


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2010-02-13 08:47:44

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

Is your wine in a chroot? In that case the pulseaudio wiki has specific instructions (written by me) on how to make that work. I think its linked from the arch wiki as well.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#8 2010-02-13 17:17:40

lasu1
Member
Registered: 2010-02-10
Posts: 83

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

@wonder: I'm going to try that. I was a little confused about how to build the package, but I've been reading/experimenting about it, and I think I might be able to get it to work.

@ngoneee: I was trying to avoid doing a chroot, because it confuses me, but I'll try that if I can't get the build to work.

I'll post an update in a few hours after I give it a whirl. I feel like I'm *really* close to making it work...just not quite there!

Offline

#9 2010-02-13 18:46:55

davidgurvich
Member
Registered: 2010-02-11
Posts: 118

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

Wine does not work with pulseaudio for most windows programs.  In fact, on systems with pulseaudio I end up disabling audio so that the programs run through wine don't crash. I suggest either oss4, which works well on my system, or alsa with jack and no pulseaudio.

Offline

#10 2010-02-13 19:28:36

lasu1
Member
Registered: 2010-02-10
Posts: 83

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

davidgurvich wrote:

Wine does not work with pulseaudio for most windows programs.  In fact, on systems with pulseaudio I end up disabling audio so that the programs run through wine don't crash. I suggest either oss4, which works well on my system, or alsa with jack and no pulseaudio.

Well, I've gotten it to work with other distros...I'm pretty sure *it can* work with Arch, too. I'm just not good enough yet to get it to work (but, I'm trying!).  I really want to make Arch my main OS, because its just so...darned...fast...but, this is the only thing holding me back.

Check out this in the AUR if you use 32bit: http://aur.archlinux.org/packages.php?ID=30419

....I'm trying to compile it for 64 bit per the above instructions...here's to hope!

Offline

#11 2010-02-13 21:58:28

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

davidgurvich wrote:

Wine does not work with pulseaudio for most windows programs.  In fact, on systems with pulseaudio I end up disabling audio so that the programs run through wine don't crash. I suggest either oss4, which works well on my system, or alsa with jack and no pulseaudio.

That's just nonsense. It doesn't even depend on the windows program you're running. Wine 'as-is' should work if ALSA (the default output) is configured correctly on your system to use pulse. I prefer to set output to OSS and run through either aoss or padsp, sounds better.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#12 2010-02-14 01:08:36

davidgurvich
Member
Registered: 2010-02-11
Posts: 118

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

Look at bugs.winehq.org.  No support for pulseaudio and none in the future.  I've had multiple systems with pulseaudio with windows programs crashing when audio is enabled.  They work if audio is disabled.  I've installed Arch on 2 systems, one with OSS4 and the other with ALSA.  The windows programs work on both using audio.  I suppose that to fully test I should install pulseaudio on the arch systems.  I won't as there I have no need of anything that pulseaudio provides.

Offline

#13 2010-02-14 01:20:12

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

davidgurvich wrote:

No support for pulseaudio and none in the future

Heh. Look at the source RPM for e.g. Fedora's wine. Notice that it contains:

README-FEDORA-PULSEAUDIO

Currently wine does not have native support for pulseaudio. However, some
patches exist to make wine use a native pulseaudio backend (see [1])
These have been included into the fedora wine package. If you have problems
please do _not_ report them to the wine project.

Distros patch it in.

Offline

#14 2010-02-15 05:24:17

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

davidgurvich wrote:

Look at bugs.winehq.org.  No support for pulseaudio and none in the future.  I've had multiple systems with pulseaudio with windows programs crashing when audio is enabled.  They work if audio is disabled.  I've installed Arch on 2 systems, one with OSS4 and the other with ALSA.  The windows programs work on both using audio.  I suppose that to fully test I should install pulseaudio on the arch systems.  I won't as there I have no need of anything that pulseaudio provides.

I use wine. My audio works on pulseaudio, with the handful of games I play, perfectly IN MY EXPERIENCE. Considering Ubuntu defaults to pulseaudio, pulseaudio's support for wine can't be all that bad or no-one on Ubuntu would be able to use wine for games (the primary usage, I believe). If you experience a problem and can't solve it, blaming 'inherent brokenness' is just a cop out, especially when other users can get it to work.

There IS a separate patch for providing native pulseaudio support. I believe that's the source for 'wine-pulse' in the AUR. Or, in other words "we've got it too".


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#15 2010-04-14 22:39:46

lasu1
Member
Registered: 2010-02-10
Posts: 83

Re: [SOLVED] Wine + (Other sound), pulseaudio, alsa :)

I know I'm resurrecting this thread from a two months ago, but I wanted to post that I now use ALSA (with dmix enabled). Everything works perfectly.

EDIT to add: The problem was that .asoundconf wasn't commented out of my ~/.asoundrc file. Once I copied the relevant dmix info (its on the wiki) into my ~/.asoundrc file, everything worked fine. I played with pulseaudio a lot, and really like pulse (its easier to change between multiple output devices), I decided to just go with ALSA since I didn't have to compile the wine + pulse package. To switch output devices with alsa, I just use a simple sed script to replace the device with my USB headset.

Last edited by lasu1 (2010-04-14 23:21:44)

Offline

Board footer

Powered by FluxBB