Mark Harmstone : winealsa: Disable channel remapping for capture devices.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 10 07:49:46 CST 2014


Module: wine
Branch: master
Commit: 8fe52db332352946484e438581bd48e41469853f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8fe52db332352946484e438581bd48e41469853f

Author: Mark Harmstone <hellas at burntcomma.com>
Date:   Fri Nov  7 15:13:32 2014 +0000

winealsa: Disable channel remapping for capture devices.

---

 dlls/winealsa.drv/mmdevdrv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winealsa.drv/mmdevdrv.c b/dlls/winealsa.drv/mmdevdrv.c
index 5f623c0..5ad72f9 100644
--- a/dlls/winealsa.drv/mmdevdrv.c
+++ b/dlls/winealsa.drv/mmdevdrv.c
@@ -1162,7 +1162,7 @@ static DWORD get_channel_mask(unsigned int channels)
 
 static HRESULT map_channels(ACImpl *This, const WAVEFORMATEX *fmt)
 {
-    if(fmt->wFormatTag == WAVE_FORMAT_EXTENSIBLE || fmt->nChannels > 2){
+    if(This->dataflow != eCapture && (fmt->wFormatTag == WAVE_FORMAT_EXTENSIBLE || fmt->nChannels > 2) ){
         WAVEFORMATEXTENSIBLE *fmtex = (void*)fmt;
         DWORD mask, flag = SPEAKER_FRONT_LEFT;
         UINT i = 0;




More information about the wine-cvs mailing list