[PATCH 3/5] winealsa.drv: Use the plughw instead of the hw interface for openening devices.

Henri Verbeet hverbeet at codeweavers.com
Wed Sep 21 14:01:45 CDT 2011


This way we at least get rate and format conversion where needed. The default
device will typically have dmix / dsnoop as well though.
---
 dlls/winealsa.drv/mmdevdrv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winealsa.drv/mmdevdrv.c b/dlls/winealsa.drv/mmdevdrv.c
index c609903..c77b54e 100644
--- a/dlls/winealsa.drv/mmdevdrv.c
+++ b/dlls/winealsa.drv/mmdevdrv.c
@@ -285,7 +285,7 @@ static HRESULT alsa_get_card_devices(snd_pcm_stream_t stream, WCHAR **ids, char
             continue;
         }
 
-        sprintf(devnode, "hw:%d,%d", card, device);
+        sprintf(devnode, "plughw:%d,%d", card, device);
         if(!alsa_try_open(devnode, stream)){
             if(count_failed)
                 ++(*num);
-- 
1.7.3.4




More information about the wine-patches mailing list