Pulse audo in 1.3.25+

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm »

jorl17 you missed important instruction wineserver -k before editing ~/.wine/user.reg directly. Reason otherwise wineserver might simply nuke you edit.

Yes its safer to use regedit or reg commands and import a proper reg file.

Now of course what would make us all happy is if Pulseaudio alsa support just worked out the box. Not having to bend 12 ways from sunday so it behaves itself.
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

Ok .27 has this error when i click soundd test:
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000
channels, pretending there's only 2 channels
ALSA lib ../../../src/pcm/pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to
open slave
ALSA lib ../../../src/pcm/pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to
open slave



On Wed, Sep 7, 2011 at 12:04 AM, oiaohm <[email protected]> wrote:
jorl17 you missed important instruction wineserver -k before editing
~/.wine/user.reg directly. Reason otherwise wineserver might simply nuke
you edit.

Yes its safer to use regedit or reg commands and import a proper reg file.

Now of course what would make us all happy is if Pulseaudio alsa support
just worked out the box. Not having to bend 12 ways from sunday so it
behaves itself.





--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

Gonna drop back to normal plugins/alsa. Brb.

On Wed, Sep 7, 2011 at 12:07 AM, MacNean Tyrrell <[email protected]> wrote:
Ok .27 has this error when i click soundd test:
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000
channels, pretending there's only 2 channels
ALSA lib ../../../src/pcm/pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to
open slave
ALSA lib ../../../src/pcm/pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to
open slave



On Wed, Sep 7, 2011 at 12:04 AM, oiaohm <[email protected]> wrote:
jorl17 you missed important instruction wineserver -k before editing
~/.wine/user.reg directly. Reason otherwise wineserver might simply nuke
you edit.

Yes its safer to use regedit or reg commands and import a proper reg file.

Now of course what would make us all happy is if Pulseaudio alsa support
just worked out the box. Not having to bend 12 ways from sunday so it
behaves itself.





--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

Ok back to 10.10 packages, even with registry edit, Allsa-plugin is being
used in pulse for wine sound. With or without reg edit.


On Wed, Sep 7, 2011 at 12:15 AM, MacNean Tyrrell <[email protected]> wrote:
Gonna drop back to normal plugins/alsa. Brb.


On Wed, Sep 7, 2011 at 12:07 AM, MacNean Tyrrell <[email protected]>wrote:
Ok .27 has this error when i click soundd test:
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000
channels, pretending there's only 2 channels
ALSA lib ../../../src/pcm/pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to
open slave
ALSA lib ../../../src/pcm/pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to
open slave



On Wed, Sep 7, 2011 at 12:04 AM, oiaohm <[email protected]>wrote:
jorl17 you missed important instruction wineserver -k before editing
~/.wine/user.reg directly. Reason otherwise wineserver might simply nuke
you edit.

Yes its safer to use regedit or reg commands and import a proper reg
file.

Now of course what would make us all happy is if Pulseaudio alsa support
just worked out the box. Not having to bend 12 ways from sunday so it
behaves itself.





--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

./wine winecfg
ALSA lib ../../../src/control/control.c:882:(snd_ctl_open_noupdate) Invalid
CTL duplex_for_pulse


i have added into .asoundrc

ctl.dmixed {
type hw
card 0
}


On Wed, Sep 7, 2011 at 12:34 AM, MacNean Tyrrell <[email protected]> wrote:
Ok back to 10.10 packages, even with registry edit, Allsa-plugin is being
used in pulse for wine sound. With or without reg edit.


On Wed, Sep 7, 2011 at 12:15 AM, MacNean Tyrrell <[email protected]>wrote:
Gonna drop back to normal plugins/alsa. Brb.


On Wed, Sep 7, 2011 at 12:07 AM, MacNean Tyrrell <[email protected]>wrote:
Ok .27 has this error when i click soundd test:
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000
channels, pretending there's only 2 channels
ALSA lib ../../../src/pcm/pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable
to open slave
ALSA lib ../../../src/pcm/pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable
to open slave



On Wed, Sep 7, 2011 at 12:04 AM, oiaohm <[email protected]>wrote:
--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

And in the registry, even if i change the duplex_for_pulse (or w/e part of
the pcm/ctl) to hw:0 ( I don't get error below) but the pulse plugin is
still used.

On Wed, Sep 7, 2011 at 12:55 AM, MacNean Tyrrell <[email protected]> wrote:
./wine winecfg
ALSA lib ../../../src/control/control.c:882:(snd_ctl_open_noupdate) Invalid
CTL duplex_for_pulse


i have added into .asoundrc

ctl.dmixed {
type hw
card 0
}


On Wed, Sep 7, 2011 at 12:34 AM, MacNean Tyrrell <[email protected]>wrote:
Ok back to 10.10 packages, even with registry edit, Allsa-plugin is being
used in pulse for wine sound. With or without reg edit.


On Wed, Sep 7, 2011 at 12:15 AM, MacNean Tyrrell <[email protected]>wrote:
Gonna drop back to normal plugins/alsa. Brb.


On Wed, Sep 7, 2011 at 12:07 AM, MacNean Tyrrell <[email protected]>wrote:

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

OK dropped back down. So aplay -D duplex_for_pulse plays directly to alsa,
no plugin is created. So I know it's possible, just wine isn't using alsa
directly, even with the registry settings.



On Wed, Sep 7, 2011 at 12:58 AM, MacNean Tyrrell <[email protected]> wrote:
And in the registry, even if i change the duplex_for_pulse (or w/e part of
the pcm/ctl) to hw:0 ( I don't get error below) but the pulse plugin is
still used.


On Wed, Sep 7, 2011 at 12:55 AM, MacNean Tyrrell <[email protected]>wrote:
./wine winecfg
ALSA lib ../../../src/control/control.c:882:(snd_ctl_open_noupdate)
Invalid CTL duplex_for_pulse


i have added into .asoundrc

ctl.dmixed {
type hw
card 0
}


On Wed, Sep 7, 2011 at 12:34 AM, MacNean Tyrrell <[email protected]>wrote:
Ok back to 10.10 packages, even with registry edit, Allsa-plugin is being
used in pulse for wine sound. With or without reg edit.


On Wed, Sep 7, 2011 at 12:15 AM, MacNean Tyrrell <[email protected]>wrote:

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

Ok if I upgrade to alsa-lib 1.0.24 wine 1.3.24 works fine, wine.1.3.27
gives the ALSA lib ../../../src/pcm/pcm_dsnoop.c:593:(snd_pcm_dsnoop_open)
unable to open slave
ALSA lib ../../../src/pcm/pcm_dsnoop.c:593:(snd_pcm_dsnoop_open) unable to
open slave

and winecfg freezes. Those errors produce when clickign test sound on .27,
and winecfg freezes up.

OK if a device that uses pulse doesn't have control, winecfg will work, if i
change full to emu or emu to full click apply then click test sound. As
soon as I open something that uses pulse, then click sound test, I get:

err:winmm:WINMM_OpenDevice Activate failed: 80004005


Also tho, youtube in chrome works (before it used to make an alsa-plugin in
pulse, now it just uses alsa no plugin is made that I see, and other pulse
sounds work at same time, virtualbox, vlc totem, mumble, etc.

On Wed, Sep 7, 2011 at 7:55 AM, MacNean Tyrrell <[email protected]> wrote:
OK dropped back down. So aplay -D duplex_for_pulse plays directly to alsa,
no plugin is created. So I know it's possible, just wine isn't using alsa
directly, even with the registry settings.



On Wed, Sep 7, 2011 at 12:58 AM, MacNean Tyrrell <[email protected]>wrote:
And in the registry, even if i change the duplex_for_pulse (or w/e part of
the pcm/ctl) to hw:0 ( I don't get error below) but the pulse plugin is
still used.


On Wed, Sep 7, 2011 at 12:55 AM, MacNean Tyrrell <[email protected]>wrote:
./wine winecfg
ALSA lib ../../../src/control/control.c:882:(snd_ctl_open_noupdate)
Invalid CTL duplex_for_pulse


i have added into .asoundrc

ctl.dmixed {
type hw
card 0
}


On Wed, Sep 7, 2011 at 12:34 AM, MacNean Tyrrell <[email protected]>wrote:

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

Few more items of interest.

If I start a process that uses alsa directly (ie crhome's flash, aplay -D,
etc.) and then open a Pulse device, I get no sound in the pulse app (The mic
still works tho, maybe because alsa's not grabbing it). But If i start a
process that uses pulse (mumble/totem/vlc/etc) then youtube/vbox/aplay will
aalso work and new pulse programs will work, so right now I'm opening
mumble, connecting then closing, because it has a bug that leaves behind
speech-dispatcher process, that keeps pulse tied in, and allsa can work.

Now that said, 1.3.24 still works fine with or without reg ALSA entries,
1.3.27 still doesn't work if pulse grabbed it first with or without reg ALSA
entries.

On Wed, Sep 7, 2011 at 9:10 AM, MacNean Tyrrell <[email protected]> wrote:
Ok if I upgrade to alsa-lib 1.0.24 wine 1.3.24 works fine, wine.1.3.27
gives the ALSA lib ../../../src/pcm/pcm_dsnoop.c:593:(snd_pcm_dsnoop_open)
unable to open slave
ALSA lib ../../../src/pcm/pcm_dsnoop.c:593:(snd_pcm_dsnoop_open) unable to
open slave

and winecfg freezes. Those errors produce when clickign test sound on .27,
and winecfg freezes up.

OK if a device that uses pulse doesn't have control, winecfg will work, if
i change full to emu or emu to full click apply then click test sound. As
soon as I open something that uses pulse, then click sound test, I get:

err:winmm:WINMM_OpenDevice Activate failed: 80004005


Also tho, youtube in chrome works (before it used to make an alsa-plugin in
pulse, now it just uses alsa no plugin is made that I see, and other pulse
sounds work at same time, virtualbox, vlc totem, mumble, etc.

On Wed, Sep 7, 2011 at 7:55 AM, MacNean Tyrrell <[email protected]> wrote:
OK dropped back down. So aplay -D duplex_for_pulse plays directly to
alsa, no plugin is created. So I know it's possible, just wine isn't using
alsa directly, even with the registry settings.



On Wed, Sep 7, 2011 at 12:58 AM, MacNean Tyrrell <[email protected]>wrote:
And in the registry, even if i change the duplex_for_pulse (or w/e part
of the pcm/ctl) to hw:0 ( I don't get error below) but the pulse plugin is
still used.


On Wed, Sep 7, 2011 at 12:55 AM, MacNean Tyrrell <[email protected]>wrote:

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

BTW this is all with 1.0.24 alsa-lib/plugiins, I dare don't change to the
alsa-driver 1.0.24 since when I did that sound just would not work at all
with the pulse version I have. Maybe if i upgrade both?


On Wed, Sep 7, 2011 at 9:44 AM, MacNean Tyrrell <[email protected]> wrote:
Few more items of interest.

If I start a process that uses alsa directly (ie crhome's flash, aplay -D,
etc.) and then open a Pulse device, I get no sound in the pulse app (The mic
still works tho, maybe because alsa's not grabbing it). But If i start a
process that uses pulse (mumble/totem/vlc/etc) then youtube/vbox/aplay will
aalso work and new pulse programs will work, so right now I'm opening
mumble, connecting then closing, because it has a bug that leaves behind
speech-dispatcher process, that keeps pulse tied in, and allsa can work.

Now that said, 1.3.24 still works fine with or without reg ALSA entries,
1.3.27 still doesn't work if pulse grabbed it first with or without reg ALSA
entries.

On Wed, Sep 7, 2011 at 9:10 AM, MacNean Tyrrell <[email protected]> wrote:
Ok if I upgrade to alsa-lib 1.0.24 wine 1.3.24 works fine, wine.1.3.27
gives the ALSA lib ../../../src/pcm/pcm_dsnoop.c:593:(snd_pcm_dsnoop_open)
unable to open slave
ALSA lib ../../../src/pcm/pcm_dsnoop.c:593:(snd_pcm_dsnoop_open) unable to
open slave

and winecfg freezes. Those errors produce when clickign test sound on
.27, and winecfg freezes up.

OK if a device that uses pulse doesn't have control, winecfg will work, if
i change full to emu or emu to full click apply then click test sound. As
soon as I open something that uses pulse, then click sound test, I get:

err:winmm:WINMM_OpenDevice Activate failed: 80004005


Also tho, youtube in chrome works (before it used to make an alsa-plugin
in pulse, now it just uses alsa no plugin is made that I see, and other
pulse sounds work at same time, virtualbox, vlc totem, mumble, etc.

On Wed, Sep 7, 2011 at 7:55 AM, MacNean Tyrrell <[email protected]>wrote:
OK dropped back down. So aplay -D duplex_for_pulse plays directly to
alsa, no plugin is created. So I know it's possible, just wine isn't using
alsa directly, even with the registry settings.



On Wed, Sep 7, 2011 at 12:58 AM, MacNean Tyrrell <[email protected]>wrote:

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

OK gonna try that, upgrade driver and pulse. I know a command now to reset
the sound back (before when I did this I killed sound and had to reinstall
OS, I found this tho that fixed ti this time when i was messing around,
posting in case anyone else is messing with sound):

sudo aptitude --purge reinstall linux-sound-base alsa-base alsa-utils
linux-image-`uname -r` linux-ubuntu-modules-`uname -r` libasound2

Make sure you ahve aptitude installed, 10.10+ I believe doesn't come with it
automatically, sudo apt-get install aptitude, otherwise apt-get either wants
to remove it (and remove like 116 other packages) or you just reinstall and
it doesn't fix your audio correctly.

On Wed, Sep 7, 2011 at 9:46 AM, MacNean Tyrrell <[email protected]> wrote:
BTW this is all with 1.0.24 alsa-lib/plugiins, I dare don't change to the
alsa-driver 1.0.24 since when I did that sound just would not work at all
with the pulse version I have. Maybe if i upgrade both?



On Wed, Sep 7, 2011 at 9:44 AM, MacNean Tyrrell <[email protected]> wrote:
Few more items of interest.

If I start a process that uses alsa directly (ie crhome's flash, aplay -D,
etc.) and then open a Pulse device, I get no sound in the pulse app (The mic
still works tho, maybe because alsa's not grabbing it). But If i start a
process that uses pulse (mumble/totem/vlc/etc) then youtube/vbox/aplay will
aalso work and new pulse programs will work, so right now I'm opening
mumble, connecting then closing, because it has a bug that leaves behind
speech-dispatcher process, that keeps pulse tied in, and allsa can work.

Now that said, 1.3.24 still works fine with or without reg ALSA entries,
1.3.27 still doesn't work if pulse grabbed it first with or without reg ALSA
entries.

On Wed, Sep 7, 2011 at 9:10 AM, MacNean Tyrrell <[email protected]>wrote:
Ok if I upgrade to alsa-lib 1.0.24 wine 1.3.24 works fine, wine.1.3.27
gives the ALSA lib ../../../src/pcm/pcm_dsnoop.c:593:(snd_pcm_dsnoop_open)
unable to open slave
ALSA lib ../../../src/pcm/pcm_dsnoop.c:593:(snd_pcm_dsnoop_open) unable
to open slave

and winecfg freezes. Those errors produce when clickign test sound on
.27, and winecfg freezes up.

OK if a device that uses pulse doesn't have control, winecfg will work,
if i change full to emu or emu to full click apply then click test sound.
As soon as I open something that uses pulse, then click sound test, I get:

err:winmm:WINMM_OpenDevice Activate failed: 80004005


Also tho, youtube in chrome works (before it used to make an alsa-plugin
in pulse, now it just uses alsa no plugin is made that I see, and other
pulse sounds work at same time, virtualbox, vlc totem, mumble, etc.

On Wed, Sep 7, 2011 at 7:55 AM, MacNean Tyrrell <[email protected]>wrote:

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

I don't know, I may give up. 1.3.24 works great going straight to alsa,
1.3.27 can't grab the audio device if pulse has already grabbed it for some
reason.

On Wed, Sep 7, 2011 at 9:48 AM, MacNean Tyrrell <[email protected]> wrote:
OK gonna try that, upgrade driver and pulse. I know a command now to reset
the sound back (before when I did this I killed sound and had to reinstall
OS, I found this tho that fixed ti this time when i was messing around,
posting in case anyone else is messing with sound):


sudo aptitude --purge reinstall linux-sound-base alsa-base alsa-utils linux-image-`uname -r` linux-ubuntu-modules-`uname -r` libasound2

Make sure you ahve aptitude installed, 10.10+ I believe doesn't come with
it automatically, sudo apt-get install aptitude, otherwise apt-get either
wants to remove it (and remove like 116 other packages) or you just
reinstall and it doesn't fix your audio correctly.

On Wed, Sep 7, 2011 at 9:46 AM, MacNean Tyrrell <[email protected]> wrote:
BTW this is all with 1.0.24 alsa-lib/plugiins, I dare don't change to the
alsa-driver 1.0.24 since when I did that sound just would not work at all
with the pulse version I have. Maybe if i upgrade both?



On Wed, Sep 7, 2011 at 9:44 AM, MacNean Tyrrell <[email protected]>wrote:
Few more items of interest.

If I start a process that uses alsa directly (ie crhome's flash, aplay
-D, etc.) and then open a Pulse device, I get no sound in the pulse app (The
mic still works tho, maybe because alsa's not grabbing it). But If i start
a process that uses pulse (mumble/totem/vlc/etc) then youtube/vbox/aplay
will aalso work and new pulse programs will work, so right now I'm opening
mumble, connecting then closing, because it has a bug that leaves behind
speech-dispatcher process, that keeps pulse tied in, and allsa can work.

Now that said, 1.3.24 still works fine with or without reg ALSA entries,
1.3.27 still doesn't work if pulse grabbed it first with or without reg ALSA
entries.

On Wed, Sep 7, 2011 at 9:10 AM, MacNean Tyrrell <[email protected]>wrote:

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

So Ok I think I have it, but it's wierd.

First, I compiled pulseaudio 0.9.93 following:

http://colin.guthr.ie/2010/09/compiling ... -from-git/

(If on ubuntu don't try to install this, you will F your sound so much,
you'll prolly have to reinstall (yeah happened to me)).

Then I do:

echo "autospawn=no" >> ~/.pulse/client.conf

pulseaudio -k


Then using those directions, after each reboot I execute the:

export LD_LIBRARY_PATH=~/Programs/pulseaudio-src/build/src/.libs


then I do:

~/Programs/pulseaudio-src/build/src/pulseaudio -n -F src/default.pa -p
$(pwd)/src/.libs/ -vvvv



Then I run something using pulse (ussually a mp3 with totem) pause the mp3
so it stays in pulse use. Then I open youtube in chrome that uses alsa
direct.

Then I kill that pulseaudio, and do:

pulseaudio



Then all sound works. As long as something stays in pulse it works.

What makes this work I suspect is the updated .23, but linked to .21 for
ubuntu to not break.

padevchooser (the pulse manager) says:

ServerVersion: 0.9.23-rebootstrapped
Linked to Library Version: 0.9.21-63-gd3efa-dirty

So yea.
Pain the the but, but so far perfect sound in all applications.


On Wed, Sep 7, 2011 at 1:51 PM, MacNean Tyrrell <[email protected]> wrote:

On Wed, Sep 7, 2011 at 1:46 PM, ryan woodsmall <[email protected]> wrote:
Wow really? Was updating because jorl17 was helping me alot. Just
putting out there where it was at and stuff. You don't gotta read it if you
don't want to.



I'm eating a crumb cake, what are you doing?
OH cake, thought you was trollin. Banging my head against pulse/alsa wall
for past 3 days.


Totes trawlin. But I've had good luck with OSS4 even though it pretty much
replaces ALSA+Pulseaudio.

The cake was delicious BTW.
I personally like pulse for everthing buy wine (even liked it in wine pre
1.3.24 and below with the winepules patches). Eh who knows what i'll do at
this time.

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

Sorry I do have the registry settings for wine for Alsa taht jor gave me.

On Wed, Sep 7, 2011 at 5:17 PM, MacNean Tyrrell <[email protected]> wrote:
So Ok I think I have it, but it's wierd.

First, I compiled pulseaudio 0.9.93 following:

http://colin.guthr.ie/2010/09/compiling ... -from-git/

(If on ubuntu don't try to install this, you will F your sound so much,
you'll prolly have to reinstall (yeah happened to me)).

Then I do:

echo "autospawn=no" >> ~/.pulse/client.conf

pulseaudio -k


Then using those directions, after each reboot I execute the:

export LD_LIBRARY_PATH=~/Programs/pulseaudio-src/build/src/.libs


then I do:

~/Programs/pulseaudio-src/build/src/pulseaudio -n -F src/default.pa -p $(pwd)/src/.libs/ -vvvv



Then I run something using pulse (ussually a mp3 with totem) pause the mp3
so it stays in pulse use. Then I open youtube in chrome that uses alsa
direct.

Then I kill that pulseaudio, and do:

pulseaudio



Then all sound works. As long as something stays in pulse it works.

What makes this work I suspect is the updated .23, but linked to .21 for
ubuntu to not break.

padevchooser (the pulse manager) says:

ServerVersion: 0.9.23-rebootstrapped
Linked to Library Version: 0.9.21-63-gd3efa-dirty

So yea.
Pain the the but, but so far perfect sound in all applications.


On Wed, Sep 7, 2011 at 1:51 PM, MacNean Tyrrell <[email protected]> wrote:

On Wed, Sep 7, 2011 at 1:46 PM, ryan woodsmall <[email protected]>wrote:
OH cake, thought you was trollin. Banging my head against pulse/alsa
wall for past 3 days.


Totes trawlin. But I've had good luck with OSS4 even though it pretty
much replaces ALSA+Pulseaudio.

The cake was delicious BTW.
I personally like pulse for everthing buy wine (even liked it in wine pre
1.3.24 and below with the winepules patches). Eh who knows what i'll do at
this time.

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell

--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Post by dardack »

OK posting this in case someone else wants to do this. This is for people on Ubuntu mainly, and who don't want to upgrade to 11.10 (fixes the pulse alsa plugin) on wine 1.3.27 (wine may fix it'self with the sound server rewrite, ubuntu has stated the plugin fix will not be backported because of new pulse API).

First create a ~/.asoundrc that has this:
(Edit the hw, or other options as needed for your card)

Code: Select all

pcm.dsnooped {
       type dsnoop
       ipc_key 2048 #Any value at random. Really, any value.
       slave {
               pcm "hw:0" #Or whatever your card # is
       }
}

pcm.dmixed {
       type dmix
               ipc_key 5678293 #Any value at random. Really, any value.
               slave {
                       pcm "hw:0" #Or whatever your card # is
               }
}
ctl.dmixed {
	type hw
	card 0
	device 0
}

pcm.duplex_for_pulse {
       type plug
       slave {
               pcm {
                       type asym
                       playback.pcm "dmixed"
                       capture.pcm  "dsnooped"
               }
       }
}
ctl.duplex_for_pulse {
	type hw
	card 0
}
next edit /etc/pulse/default.pa find the

Code: Select all

load-module module-udev-detect
line and comment it out:

Code: Select all

#load-module module-udev-detect
then scroll to bottom of the file and add:

Code: Select all

load-module module-alsa-sink device=duplex_for_pulse
load-module module-alsa-source device=duplex_for_pulse
then make a alsareg.reg file (or manually edit the registry of your wineprefix):

Code: Select all

REGEDIT4
[HKEY_CURRENT_USER\Software\Wine\Alsa Driver] 1315011634
"AutoScanCards"="N"
"AutoScanDevices"="N"
"DeviceCount"="1"
"DeviceCTL1"="duplex_for_pulse"
"DevicePCM1"="duplex_for_pulse"
"UseDirectHW"="Y"
then in terminal:

Code: Select all

WINEPREFIX="your prefix path here" regedit alsareg.reg
Open winecfg go to audio tab and make sure Alsa is checked and Emulation is selected.


now the next part are a few ways you can do. You want updated alsa-plugins/alsa-lib but not alsa-driver/alsa-utils/linux-sound-base. I used the ppa from these guys:
https://launchpad.net/~team-iquik/+archive/alsa
updated everything but alsa-base/alsa-utils/linux-sound-base, then removed the ppa. You can also download the source code, compile/install it.

I rebooted at this point. If your using 1.3.24 at least (I tested that), wine should use alsa directly, and regular apps should use pulse now. 1.3.27 will not get sound if something is using pulse, and if wine is using the soundcard pulse apps won't get sound. So now comes the hackish part.

Follow the steps to compiling pulseaudio here:
http://colin.guthr.ie/2010/09/compiling ... -from-git/

DO NOT DO sudo make install , you will probably mess up your whole sound if you do, and will prolly have to reinstall OS (happened to me, no amount of purges/reinstalls got my sound back).

Once you have it compilled, I rebooted. I then have 3 scripts:

pulseAudiolib.sh

Code: Select all

! /bin/bash
export LD_LIBRARY_PATH=/home/macnean/Programs/pulseaudio-0.9.23/build/src/.libs
I open terminal and run:

Code: Select all

. pulseAudiolib.sh
Be mindful of the .<space> it allows the exported path to escape the single session

pulseSecondlib.sh

Code: Select all

rm /home/macnean/.pulse/client.conf
echo "autospawn=no" >> /home/macnean/.pulse/client.conf
pulseaudio -k
~/Programs/pulseaudio-0.9.23/build/src/pulseaudio -n -F ~/Programs/pulseaudio-0.9.23/build/src/default.pa -p $LD_LIBRARY_PATH -vvv
run this script, and now you need to run something that uses pulse (vlc/totem/mumble/whatever) and pause it.
in that terminal hit CTRL C to end this local pulse

pulseThirdlib.sh

Code: Select all

#! /bin/bash
rm /home/macnean/.pulse/client.conf
pulseaudio
And that's it. 1.3.27 will now use ALSA straight up, and all pulse items can use the sound card. Not sure anyone else cares, but posting it here for documentation sake incase my HD crashes or something.[
Atroxus
Newbie
Newbie
Posts: 2
Joined: Tue Jul 26, 2011 6:14 pm

Post by Atroxus »

I tried out dardack's guide. I got as far as using alsareg.reg and that gave me what I wanted for sound (mostly).

Wine(?) still seems to have trouble recognizing multiple sound cards though.

Card 1: hw:0 internal audio (ALC892)
Card 2: hw:1 Logitech USB headset (USB Audio)

I duplicated the asoundrc config and the registry entries for my second sound card but Wine will only use whatever is specified as PCM1 (but only sometimes)

Pulse works with both cards no prob with and without wine running.

I can switch which sound card wine is using with the registry. Works with WoW, Portal 2, Civ V, Oblivion (but not the launcher oddly) and Doom 3.

Bioshock was kinda weird on the main menu, menu sounds were from my internal sound card and ambient noise was from my Logitech headset (hw:1). In game it was using my internal sound card which it should not have been. Same with Super Meat Boy.

Ubuntu 10.04 Wine 1.3.27 Pulse 0.9.22
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

The reg will if Pulse doesn't want to grab sound later. Maybe with 2 sound
cards it works better. But on mine if Pulse has grabed the Soundcard at
this point, wine won't be able to use it for some reason. (at least 1.3.27
wine, 1.3.24 worked fine at this point).

Did you change the name pcm.dmixed/mixin for the second card, they can't
have the same name, you also have to change the HW#. It could be why you're
having sound go across multiple sound cards. Then create duplex2 or
something.

BTW you using 1.3.27 wine?

On Thu, Sep 8, 2011 at 12:17 PM, Atroxus <[email protected]> wrote:
I tried out dardack's guide. I got as far as using alsareg.reg and that
gave me what I wanted for sound (mostly).

Wine(?) still seems to have trouble recognizing multiple sound cards
though.

Card 1: hw:0 internal audio (ALC892)
Card 2: hw:1 Logitech USB headset (USB Audio)

I duplicated the asoundrc config and the registry entries for my second
sound card but Wine will only use whatever is specified as PCM1 (but only
sometimes)

Pulse works with both cards no prob with and without wine running.

I can switch which sound card wine is using with the registry. Works with
WoW, Portal 2, Civ V, Oblivion (but not the launcher oddly) and Doom 3.

Bioshock was kinda weird on the main menu, menu sounds were from my
internal sound card and ambient noise was from my Logitech headset (hw:1).
In game it was using my internal sound card which it should not have been.
Same with Super Meat Boy.

Ubuntu 10.04 Wine 1.3.27 Pulse 0.9.22





--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
Atroxus
Newbie
Newbie
Posts: 2
Joined: Tue Jul 26, 2011 6:14 pm

Re: Pulse audo in 1.3.25+

Post by Atroxus »

dardack wrote:The reg will if Pulse doesn't want to grab sound later. Maybe with 2 sound
cards it works better. But on mine if Pulse has grabed the Soundcard at
this point, wine won't be able to use it for some reason. (at least 1.3.27
wine, 1.3.24 worked fine at this point).
I am not having this issue on 1.3.27. There's no conflict between wine and pulse that I have seen. I could just be lucky though. I don't think I was having near as many issues with sound after 1.3.25 came out as some other people though.
dardack wrote: Did you change the name pcm.dmixed/mixin for the second card, they can't
have the same name, you also have to change the HW#. It could be why you're
having sound go across multiple sound cards. Then create duplex2 or
something.
I suffixed everything with 0 or 1 depending if it was hw:0 or hw:1. Works great except in the few circumstances I noted.
dardack wrote: BTW you using 1.3.27 wine?
Yup. I had to download the 1.3.27 deb from the natty repo though since there is no 1.3.27 build for lucid yet.

Also many thanks for putting that little guide together!
dardack
Level 3
Level 3
Posts: 98
Joined: Mon Sep 05, 2011 3:24 pm

Pulse audo in 1.3.25+

Post by dardack »

You can thank Jorl17, that dude helped me a ton with the Alsa
settings/.asoundrc/default.pa stuff.

Ahh your on lucid? hmmm, i'm on maverick. Wodering if updated pulse or
alsa causes the conflict grabbing of the HW. I know there were some bugs in
the pulse code /alsa pulse plugin.

Yea I was using wine-pulse patches in 1.3.24 so was a shock when .25/26 came
out. Since I haven't overridden permantly my built in pulse, I'm gonna do
testing once .28 comes out to see if all the pulseaudio stuff is needed. I
really hope not, pita.


Also, the multimedia-git with pulse sound compiled in I believe is coming
along, so waiting to see where that goes. For now I have sound everywhere,
just everytime I reboot I gotta do some funky stuff if I want to play games
(which has been decent amoutn lately when I'm not messing with the
sound/compiling stuff).



--
Sincerely,

MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... hment.html>
Locked