aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-06-14 18:10:10 -0700
committerChris Robinson <[email protected]>2012-06-14 18:10:10 -0700
commit46840ee787c7ac95e32765a2c2dec6b7b6fc5c7c (patch)
treed295eac8bdf3504565e97350747d9d407014450e
parent1e0282a23874f4c1175be1fad9c9122507cab083 (diff)
Add DEVPKEY_Device_FriendlyName declaration for mingw-w64 compatibility
-rw-r--r--Alc/backends/mmdevapi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c
index 36a11e2d..0edd8e60 100644
--- a/Alc/backends/mmdevapi.c
+++ b/Alc/backends/mmdevapi.c
@@ -28,6 +28,7 @@
#include <mmdeviceapi.h>
#include <audioclient.h>
#include <cguid.h>
+#include <devpropdef.h>
#include <mmreg.h>
#include <propsys.h>
#include <propkey.h>
@@ -45,6 +46,8 @@
DEFINE_GUID(KSDATAFORMAT_SUBTYPE_PCM, 0x00000001, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
DEFINE_GUID(KSDATAFORMAT_SUBTYPE_IEEE_FLOAT, 0x00000003, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
+DEFINE_DEVPROPKEY(DEVPKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80,0x20, 0x67,0xd1,0x46,0xa8,0x50,0xe0, 14);
+
#define MONO SPEAKER_FRONT_CENTER
#define STEREO (SPEAKER_FRONT_LEFT|SPEAKER_FRONT_RIGHT)
#define QUAD (SPEAKER_FRONT_LEFT|SPEAKER_FRONT_RIGHT|SPEAKER_BACK_LEFT|SPEAKER_BACK_RIGHT)