Comment 303 for bug 371897

Revision history for this message
In , Sorceror (shacklein) wrote :

(In reply to comment #196)
> If someone would write the pulseaudio driver patch according to the wine coding
> standards (where are them?) and complete the missing bits (which functionality
> is exactly missing/do we need more optimization?) would you accept it in main
> tree, am I correct?

I can't speak for AJ, who is the only person who can commit to the wine upstream git tree, but I'd say there is a good chance of that.

> What is the point of having:
> WINE->PULSE->ALSA
> instead of
> WINE->ALSA->PULSE->ALSA
> ?

I counter with the same logic:
What's the point of having WINE->PULSE->ALSA instead of WINE->ALSA? Remove pulse from the equation (and use dmix where required) and you have a better working solution.

Of course, pulse is cross-platform, so works on Solaris, *BSD, etc., where ALSA is not available, but OSS is. So you could then have WINE->OSS4 instead of WINE->PULSE->OSS.

> It's pretty clear to me, one less redirection and functions call etc etc...
> Again, clearly WINE->ALSA could be better, but as seen as PULSE is basically
> the de-facto standard (and now -gasp- works) why not support it?

No, pulse is not a de-facto standard. It's not installed by default by the majority of distros. ALSA is the de-facto standard for sound in Linux; OSS is still available in the kernel tree, as well as by ALSA emulation, although the best OSS-based solution would be to compile OSS4 which is not in the kernel due to license disparity.

> What about OpenAL? would it be like
> WINE->OpenAL->PULSE->ALSA
> or something else?

> Ps. Just to clarify, I have been using wine in the past 3+ years to play WoW.
> When in Ubuntu 8.10 (or 8.04 I don't remember exactly), pulseaudio came in, I
> was losing 30% FPS because bad optimization so I wasn't exactly a fan of it.
> But now, it seems to work, and because of that I guess it's better to support
> it straight in wine.

No, that's not a good reason. Your performance has most likely improved due to improvements in winealsa to make it work better with pulse. For more reliable results, pulseaudio can be removed completely and safely, even on Ubuntu.