|
37 | 37 |
|
38 | 38 | #include <functiondiscoverykeys.h> |
39 | 39 |
|
40 | | -#ifndef PKEY_Device_FriendlyName |
| 40 | +#ifndef PKEY_Device_FriendlyNameGodot |
41 | 41 |
|
42 | 42 | #undef DEFINE_PROPERTYKEY |
43 | 43 | /* clang-format off */ |
44 | 44 | #define DEFINE_PROPERTYKEY(id, a, b, c, d, e, f, g, h, i, j, k, l) \ |
45 | 45 | const PROPERTYKEY id = { { a, b, c, { d, e, f, g, h, i, j, k, } }, l }; |
46 | 46 | /* clang-format on */ |
47 | 47 |
|
48 | | -DEFINE_PROPERTYKEY(PKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 14); |
| 48 | +DEFINE_PROPERTYKEY(PKEY_Device_FriendlyNameGodot, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 14); |
49 | 49 | #endif |
50 | 50 |
|
51 | 51 | const CLSID CLSID_MMDeviceEnumerator = __uuidof(MMDeviceEnumerator); |
@@ -178,7 +178,7 @@ Error AudioDriverWASAPI::audio_device_init(AudioDeviceWASAPI *p_device, bool p_c |
178 | 178 | PROPVARIANT propvar; |
179 | 179 | PropVariantInit(&propvar); |
180 | 180 |
|
181 | | - hr = props->GetValue(PKEY_Device_FriendlyName, &propvar); |
| 181 | + hr = props->GetValue(PKEY_Device_FriendlyNameGodot, &propvar); |
182 | 182 | ERR_BREAK(hr != S_OK); |
183 | 183 |
|
184 | 184 | if (p_device->device_name == String(propvar.pwszVal)) { |
@@ -449,7 +449,7 @@ Array AudioDriverWASAPI::audio_device_get_list(bool p_capture) { |
449 | 449 | PROPVARIANT propvar; |
450 | 450 | PropVariantInit(&propvar); |
451 | 451 |
|
452 | | - hr = props->GetValue(PKEY_Device_FriendlyName, &propvar); |
| 452 | + hr = props->GetValue(PKEY_Device_FriendlyNameGodot, &propvar); |
453 | 453 | ERR_BREAK(hr != S_OK); |
454 | 454 |
|
455 | 455 | list.push_back(String(propvar.pwszVal)); |
|
0 commit comments