WASAPI audio driver compile fix on mingw
This commit is contained in:
parent
9e7cee2ceb
commit
3316a64e12
1 changed files with 11 additions and 0 deletions
|
@ -37,6 +37,17 @@
|
||||||
|
|
||||||
#include <functiondiscoverykeys.h>
|
#include <functiondiscoverykeys.h>
|
||||||
|
|
||||||
|
#ifndef PKEY_Device_FriendlyName
|
||||||
|
|
||||||
|
#undef DEFINE_PROPERTYKEY
|
||||||
|
/* clang-format off */
|
||||||
|
#define DEFINE_PROPERTYKEY(id, a, b, c, d, e, f, g, h, i, j, k, l) \
|
||||||
|
const PROPERTYKEY id = { { a, b, c, { d, e, f, g, h, i, j, k, } }, l };
|
||||||
|
/* clang-format on */
|
||||||
|
|
||||||
|
DEFINE_PROPERTYKEY(PKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 14);
|
||||||
|
#endif
|
||||||
|
|
||||||
const CLSID CLSID_MMDeviceEnumerator = __uuidof(MMDeviceEnumerator);
|
const CLSID CLSID_MMDeviceEnumerator = __uuidof(MMDeviceEnumerator);
|
||||||
const IID IID_IMMDeviceEnumerator = __uuidof(IMMDeviceEnumerator);
|
const IID IID_IMMDeviceEnumerator = __uuidof(IMMDeviceEnumerator);
|
||||||
const IID IID_IAudioClient = __uuidof(IAudioClient);
|
const IID IID_IAudioClient = __uuidof(IAudioClient);
|
||||||
|
|
Loading…
Reference in a new issue