Commit 0f18bb0f authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

Fixed pin direction when registering audio input device.

parent aaa5921f
...@@ -230,7 +230,6 @@ static HRESULT DEVENUM_CreateSpecialCategories() ...@@ -230,7 +230,6 @@ static HRESULT DEVENUM_CreateSpecialCategories()
rf2.dwMerit = MERIT_PREFERRED; rf2.dwMerit = MERIT_PREFERRED;
rf2.u.s1.cPins2 = 1; rf2.u.s1.cPins2 = 1;
rf2.u.s1.rgPins2 = &rfp2; rf2.u.s1.rgPins2 = &rfp2;
rfp2.dwFlags = REG_PINFLAG_B_RENDERER;
rfp2.cInstances = 1; rfp2.cInstances = 1;
rfp2.nMediums = 0; rfp2.nMediums = 0;
rfp2.lpMedium = NULL; rfp2.lpMedium = NULL;
...@@ -261,6 +260,7 @@ static HRESULT DEVENUM_CreateSpecialCategories() ...@@ -261,6 +260,7 @@ static HRESULT DEVENUM_CreateSpecialCategories()
if (FAILED(res)) /* can't register any devices in this category */ if (FAILED(res)) /* can't register any devices in this category */
numDevs = 0; numDevs = 0;
rfp2.dwFlags = REG_PINFLAG_B_RENDERER;
for (i = 0; i < numDevs; i++) for (i = 0; i < numDevs; i++)
{ {
if (waveOutGetDevCapsW(i, &wocaps, sizeof(WAVEOUTCAPSW)) if (waveOutGetDevCapsW(i, &wocaps, sizeof(WAVEOUTCAPSW))
...@@ -324,6 +324,7 @@ static HRESULT DEVENUM_CreateSpecialCategories() ...@@ -324,6 +324,7 @@ static HRESULT DEVENUM_CreateSpecialCategories()
if (FAILED(res)) /* can't register any devices in this category */ if (FAILED(res)) /* can't register any devices in this category */
numDevs = 0; numDevs = 0;
rfp2.dwFlags = REG_PINFLAG_B_OUTPUT;
for (i = 0; i < numDevs; i++) for (i = 0; i < numDevs; i++)
{ {
if (waveInGetDevCapsW(i, &wicaps, sizeof(WAVEINCAPSW)) if (waveInGetDevCapsW(i, &wicaps, sizeof(WAVEINCAPSW))
...@@ -368,6 +369,7 @@ static HRESULT DEVENUM_CreateSpecialCategories() ...@@ -368,6 +369,7 @@ static HRESULT DEVENUM_CreateSpecialCategories()
if (FAILED(res)) /* can't register any devices in this category */ if (FAILED(res)) /* can't register any devices in this category */
numDevs = 0; numDevs = 0;
rfp2.dwFlags = REG_PINFLAG_B_RENDERER;
for (i = 0; i < numDevs; i++) for (i = 0; i < numDevs; i++)
{ {
if (midiOutGetDevCapsW(i, &mocaps, sizeof(MIDIOUTCAPSW)) if (midiOutGetDevCapsW(i, &mocaps, sizeof(MIDIOUTCAPSW))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment