waveIn & DSound

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



as of today, dsound test doesn't work
this patch is needed, but it's not sufficient yet (perhaps there are still uncommitted patches in the drain)

A+
--
Eric Pouech
Name:          mm_wiphy
ChangeLog:     allowed waveInMessage to use physical information (as waveOut does)
License:       X11
GenDate:       2003/02/16 09:33:28 UTC
ModifiedFiles: dlls/winmm/winmm.c
AddedFiles:    
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/winmm/winmm.c,v
retrieving revision 1.13
diff -u -u -r1.13 winmm.c
--- dlls/winmm/winmm.c	7 Jan 2003 20:36:23 -0000	1.13
+++ dlls/winmm/winmm.c	16 Feb 2003 09:14:45 -0000
@@ -2830,12 +2830,17 @@
 
     TRACE("(%p, %u, %ld, %ld)\n", hWaveIn, uMessage, dwParam1, dwParam2);
 
+    if ((wmld = MMDRV_Get(hWaveIn, MMDRV_WAVEIN, FALSE)) == NULL) {
+	if ((wmld = MMDRV_Get(hWaveIn, MMDRV_WAVEIN, TRUE)) != NULL) {
+	    return MMDRV_PhysicalFeatures(wmld, uMessage, dwParam1, dwParam2);
+	}
+	return MMSYSERR_INVALHANDLE;
+    }
+
     /* from M$ KB */
     if (uMessage < DRVM_IOCTL || (uMessage >= DRVM_IOCTL_LAST && uMessage < DRVM_MAPPER))
 	return MMSYSERR_INVALPARAM;
 
-    if ((wmld = MMDRV_Get(hWaveIn, MMDRV_WAVEIN, FALSE)) == NULL)
-	return MMSYSERR_INVALHANDLE;
 
     return MMDRV_Message(wmld, uMessage, dwParam1, dwParam2, TRUE);
 }

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux