Commit 7b8dbc47 authored by Mark Harmstone's avatar Mark Harmstone Committed by Alexandre Julliard

mmdevapi: Allow PKEY_AudioEndpoint_PhysicalSpeakers to be overridden.

parent b218e81d
...@@ -372,8 +372,18 @@ static MMDevice *MMDevice_Create(WCHAR *name, GUID *id, EDataFlow flow, DWORD st ...@@ -372,8 +372,18 @@ static MMDevice *MMDevice_Create(WCHAR *name, GUID *id, EDataFlow flow, DWORD st
} }
if (flow != eCapture) if (flow != eCapture)
{
PROPVARIANT pv2;
PropVariantInit(&pv2);
/* make read-write by not overwriting if already set */
if (FAILED(MMDevice_GetPropValue(id, flow, &PKEY_AudioEndpoint_PhysicalSpeakers, &pv2)) || pv2.vt != VT_UI4)
set_driver_prop_value(id, flow, &PKEY_AudioEndpoint_PhysicalSpeakers); set_driver_prop_value(id, flow, &PKEY_AudioEndpoint_PhysicalSpeakers);
PropVariantClear(&pv2);
}
RegCloseKey(keyprop); RegCloseKey(keyprop);
} }
RegCloseKey(key); RegCloseKey(key);
......
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