Trying email response once more, will check forums to see.<br><br><div class="gmail_quote">On Tue, Sep 6, 2011 at 3:03 PM, jorl17 <span dir="ltr"><<a href="mailto:wineforum-user@winehq.org">wineforum-user@winehq.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
dardack wrote:<br>
> OK WTF, I sent 2 emails yesterday.  Didn't get any responses, so decided to just check out the forum.  They aren't here.  Sigh.  Ok here is what I wrote:<br>
><br>
><br>
> OK looks like i need help.  I got sound to work in both this way:<br>
><br>
> in /etc/pulse/<a href="http://default.pa" target="_blank">default.pa</a><br>
><br>
> comment out:<br>
> #load-module module-udev-detect<br>
> #load-module module-suspend-on-idle<br>
><br>
> Added:<br>
><br>
><br>
> load-module module-alsa-source device=dsnoop<br>
> load-module module-alsa-sink device=dmix<br>
><br>
><br>
> no asoundrc file needed (in fact even when I put a asoundrc such as partial: pcm.!default {<br>
>         type plug<br>
>         slave.pcm "dmixer"<br>
> }<br>
> ....<br>
><br>
> if i cchanged dmix to dmixer it wouldn't work.  Maybe I'm doing something wrong with the .asoundrc file.<br>
><br>
<br>
<br>
</div>Hm... Was that the essential change you added in the asoundrc file? Because if that was it then it's normal for it not work. Not only are you changing the default device (which you shouldn't do, as it should *still* point to pulse), but you're also not creating the dmixer device, (I think). I don't know why you don't get sound. It's puzzling me, to be honest. My suggestion is that of manually creating a dsnoop-based device. try to insert this in the .asoundrc file:<br>

<br>
<br>
Code:<br>
pcm.dsnooped {<br>
        type dsnoop<br>
        ipc_key 2048 #Any value at random. Really, any value.<br>
        slave {<br>
                pcm "hw:0" #Or whatever your card is<br>
        }<br>
}<br>
<br>
<br>
<br>
Then, instead of adding dsnoop in that line, add dsnooped. See if it works. If it doesn't and if you *don't* need Wine to pick up your microphone, you could just have Pulseaudio access your sound card directly for recording, using hw:0.<br>

<br>
I'd recommend you to do the same for a dmix device:<br>
<br>
<br>
Code:<br>
pcm.dmixed {<br>
        type dmix<br>
                ipc_key 5678293 #Any value at random. Really, any value.<br>
                ipc_perm 0666<br>
                slave {<br>
                        pcm "hw:0" #Or whatever your card is<br>
# These are all optional and are here for fine-tunning later on.<br>
#                       period_time 0<br>
#                       period_size 8192<br>
#                       buffer_size 32768<br>
#                       rate 48000<br>
#                       format S16_LE<br>
                }<br>
}<br>
<br>
<br>
<br>
Then, create a "duplex" device to join these together:<br>
<br>
<br>
Code:<br>
pcm.duplex_for_pulse {<br>
        type plug<br>
        slave {<br>
                pcm {<br>
                        type asym<br>
                        playback.pcm "dmixed"<br>
                        capture.pcm  "dsnooped"<br>
                }<br>
        }<br>
}<br>
<br>
<br>
<br>
Now use that device in both lines in the pulseaudio file. See if that works.<br>
<br>
Make sure that you don't change the default device, or even anything pulse related. default should still point to pulse, otherwise nothing will go through pulseaudio and things might get really nasty.<br>
<div class="im"><br>
<br></div></blockquote><div><br></div><div>OK, i think I understand, I want an .asoundrc file start blank, then put in:</div><div> </div><div>[code]</div><div>pcm.dsnooped {<br>       type dsnoop<br>       ipc_key 2048 #Any value at random. Really, any value.<br>
       slave {<br>               pcm "hw:0" #Or whatever your card is<br>       }<br>}</div><div><b>#it's hw0:0 no?</b></div><div><b><br></b></div><div> pcm.dmixed {</div>       type dmix<br>               ipc_key 5678293 #Any value at random. Really, any value.<br>
               ipc_perm 0666<br>               slave {<br>                       pcm "hw:0" #Or whatever your card is<br># These are all optional and are here for fine-tunning later on.<br>#                       period_time 0<br>
#                       period_size 8192<br>#                       buffer_size 32768<br>#                       rate 48000<br>#                       format S16_LE<br>               }<br>}</div><div class="gmail_quote"><br>
pcm.duplex_for_pulse {<br>       type plug<br>       slave {<br>               pcm {<br>                       type asym<br>                       playback.pcm "dmixed"<br>                       capture.pcm  "dsnooped"<br>
               }<br>       }<br>}</div><div class="gmail_quote">[/code]</div><div class="gmail_quote"><br></div><div class="gmail_quote">Save it to my ~/ directory.</div><div class="gmail_quote"><br></div><div class="gmail_quote">
Then edit /etc/pulse/<a href="http://default.pa">default.pa</a> and add:</div><div class="gmail_quote">[code]</div><div class="gmail_quote">load-module module-alsa-sink device=duplex_for_pulse</div><div class="gmail_quote">
load-module module-alsa-source device=duplex_for_pulse</div><div class="gmail_quote">[/code]</div><div class="gmail_quote">Do I have to comment out the udev/idle lines?</div><div class="gmail_quote"><br></div><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">dardack wrote:<br>
><br>
> OK so sound works, but my mic doesn't. If I unmute it in alsamixer, it goes straight to my headphones, no recoding software picks it up.<br>
><br>
> Also no sound in virtualbox anymore so far That i've discovered don't work, Flash player in Chrome doesn't work (didn't try firefox).   VLC/Totem work.<br>
><br>
<br>
<br>
</div>See above.<br>
<div class="im"><br>
<br>
dardack wrote:<br>
><br>
> 2nd email:<br>
><br>
> OK thinking.  I ptu in the default <a href="http://default.pa" target="_blank">default.pa</a> back, then I booted, ran the padevchooser (or the manager w/e it's called).  I see this under sink/source/devices/modules:<br>

><br>
> module-alsa-card device_id="0" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" tsched=yes ignore_db=no_card_properties="module-udev-detect.discovered=1"<br>
><br>
> Default Source:  alsa_input.pci-0000_00_1b.0.analog-stereo<br>
> Default Sink: alsa_output.pci-0000_00_1b.0.analog-stereo<br>
><br>
> Could I somehow use this information to get mic/better alsa output support?<br>
<br>
<br>
</div>I don't think that's of any use at all. At least not for now. Also, you don't need to reboot, as you probably know. You only have to kill pulseaudio and restart it. (I'm not sure if there's a service for it in Ubuntu).<br>

<br></blockquote><div><br></div><div>I thought this, i would do a sudo service pulseaudio restart, it would say pulseaudio user something i forget.  Maybe I needed a sudo pulseaudio -k.  Not sure.  I would log out and back in, and most things in asoundrc would take affect, but not all things in <a href="http://default.pa">default.pa</a> all the time.  I know I had to reboot for changes with certain things to actually take place.  Not always, like I could remove the alsa-sink and add it and pulse would get/loose sound.  But it was weird.  </div>
<div><br></div><div>Um at work right now, but will definetely try this later.  I at least know messing with <a href="http://default.pa/asoundrc">default.pa/asoundrc</a> doesn't make me reinstall the OS. I tried upgrading pulse/alsa-plugins to the unbugged versions, with new deb's, installing the new dependencies, but it always wanted to remvoe gnome eventually, then sound just stopped working, I could never get it back.  Reinstalled OS twice trying to get things working with wine/alsa/pulse in Ubuntu (I mean perfectly, loosing sound after 30 minutes isn't acceptable to me personally).  So at least with this, I was able to restore original <a href="http://default.pa">default.pa</a>, remove asoundrc and sound works like a fresh install again.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Cheers,<br>
<br>
Jorl17[/code]<br>
<br>
<br><br></blockquote><div><br></div><div>Appreciate your help a ton.  Btw does [/code] work on the forums properly? </div></div><br><br clear="all"><div><br></div>-- <br>Sincerely, <br><br>MacNean C. Tyrrell<br>