Comment 416 for bug 371897

Revision history for this message
In , Raymond (superquad-vortex2) wrote :

(In reply to comment #289)
> Just a quick note - the ALSA driver is buggy again. It had worked good for some
> time, but no it again is stuttering and stops working after approximately 10
> minutes. We really need pulse drivers in.
>

But chip challenge work perfectly with "plug:dmix:0" and timidity

The problem is due to "pulse" plugin , which is written by PA developers , does not follow "Handshake between application and library"

http://www.alsa-project.org/alsa-doc/alsa-lib/pcm.html#pcm_handshake

There are no easy way for the average user to fall back to use ALSA 's default device in /usr/share/alsa/cards/HDA-Intel.conf after PA override

http://source.winehq.org/git/wine.git/?a=commit;h=0fe3a59b46a44b6d2d54a1afe1c4198c53d6c68c

pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}

http://www.winehq.org/pipermail/wine-patches/2005-March/016439.html

winamp is able to use dsound to select other sound card other than the default playback device

http://www.intel.com/support/motherboards/desktop/sb/cs-020642.htm#multistream

For some wine user, they may know how to use .asoundrc and wine registry key to select their prefered device since winecfg does not allow use to select sound card for playback or record even when winealsa support multiple sound cards

.asoundrc

pcm.wine {
    type
    asym
    playback.pcm "plug:front:0"
    capture.pcm "plughw:0,0"
}

http://wiki.winehq.org/UsefulRegistryKeys

AutoScanCards="N"
DeviceCount="1"
DevicePCM1="wine"
DeviceCTL1="hw:0"
UseDirectHW="N"

since wine is still using vxd model, I agree that it is wrong to allow multiple waveopens in winealsa ,

but when winecoreaudio , wineesd and winepulse support multiple waveoutopen like wdm model , I think wine developer should reconsider adding multiple waveoutopen for those alsa device which allow wine to open more than one time

or provide some option to stop the autostart of primary buffer of dsound in winealsa to allow those alsa's hardware/softeare mixing device to use the secondary hardware bffers