[DEVENUM] Fixed pin direction when registering audio input device
Christian Costa
titan.costa at wanadoo.fr
Mon Jan 24 16:09:22 CST 2005
Hi,
Changelog:
Fixed pin direction when registering audio input device.
Christian Costa titan.costa at wanadoo.fr
-------------- next part --------------
Index: dlls/devenum/createdevenum.c
===================================================================
RCS file: /home/wine/wine/dlls/devenum/createdevenum.c,v
retrieving revision 1.8
diff -u -r1.8 createdevenum.c
--- dlls/devenum/createdevenum.c 13 Dec 2004 21:19:02 -0000 1.8
+++ dlls/devenum/createdevenum.c 24 Jan 2005 20:55:12 -0000
@@ -230,7 +230,6 @@
rf2.dwMerit = MERIT_PREFERRED;
rf2.u.s1.cPins2 = 1;
rf2.u.s1.rgPins2 = &rfp2;
- rfp2.dwFlags = REG_PINFLAG_B_RENDERER;
rfp2.cInstances = 1;
rfp2.nMediums = 0;
rfp2.lpMedium = NULL;
@@ -261,6 +260,7 @@
if (FAILED(res)) /* can't register any devices in this category */
numDevs = 0;
+ rfp2.dwFlags = REG_PINFLAG_B_RENDERER;
for (i = 0; i < numDevs; i++)
{
if (waveOutGetDevCapsW(i, &wocaps, sizeof(WAVEOUTCAPSW))
@@ -324,6 +324,7 @@
if (FAILED(res)) /* can't register any devices in this category */
numDevs = 0;
+ rfp2.dwFlags = REG_PINFLAG_B_OUTPUT;
for (i = 0; i < numDevs; i++)
{
if (waveInGetDevCapsW(i, &wicaps, sizeof(WAVEINCAPSW))
@@ -368,6 +369,7 @@
if (FAILED(res)) /* can't register any devices in this category */
numDevs = 0;
+ rfp2.dwFlags = REG_PINFLAG_B_RENDERER;
for (i = 0; i < numDevs; i++)
{
if (midiOutGetDevCapsW(i, &mocaps, sizeof(MIDIOUTCAPSW))
More information about the wine-patches
mailing list