aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-12 14:56:17 -0700
committerChris Robinson <[email protected]>2019-08-12 14:56:17 -0700
commit38a565bdf8ab9f7da601dd12f03cdc8f9b37f23c (patch)
tree9fea5ee5a553a099fced950a6881cfd6123a1545
parentdff906c13b57d3c18b973bc282668c2665f653a4 (diff)
Move UID definitions to a separate source
-rw-r--r--CMakeLists.txt35
-rw-r--r--alc/helpers.cpp50
-rw-r--r--alc/uiddefs.cpp37
3 files changed, 64 insertions, 58 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c11d311c..7626c1ef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -619,6 +619,8 @@ SET(OPENAL_OBJS
al/effect.cpp
al/effect.h
al/error.cpp
+ al/event.cpp
+ al/event.h
al/extension.cpp
al/filter.cpp
al/filter.h
@@ -627,8 +629,6 @@ SET(OPENAL_OBJS
al/source.cpp
al/source.h
al/state.cpp
- al/event.cpp
- al/event.h
)
SET(ALC_OBJS
alc/alc.cpp
@@ -638,17 +638,18 @@ SET(ALC_OBJS
alc/alconfig.cpp
alc/alconfig.h
alc/alcontext.h
+ alc/ambdec.cpp
+ alc/ambdec.h
alc/ambidefs.h
+ alc/bformatdec.cpp
+ alc/bformatdec.h
alc/bs2b.cpp
alc/bs2b.h
+ alc/compat.h
alc/converter.cpp
alc/converter.h
+ alc/cpu_caps.h
alc/devformat.h
- alc/inprogext.h
- alc/mastering.cpp
- alc/mastering.h
- alc/ringbuffer.cpp
- alc/ringbuffer.h
alc/effects/base.h
alc/effects/autowah.cpp
alc/effects/chorus.cpp
@@ -669,21 +670,21 @@ SET(ALC_OBJS
alc/filters/nfc.h
alc/filters/splitter.cpp
alc/filters/splitter.h
- alc/helpers.cpp
- alc/compat.h
- alc/cpu_caps.h
alc/fpu_modes.h
- alc/logging.h
+ alc/helpers.cpp
alc/hrtf.cpp
alc/hrtf.h
+ alc/inprogext.h
+ alc/logging.h
+ alc/mastering.cpp
+ alc/mastering.h
+ alc/mixvoice.cpp
+ alc/panning.cpp
+ alc/ringbuffer.cpp
+ alc/ringbuffer.h
alc/uhjfilter.cpp
alc/uhjfilter.h
- alc/ambdec.cpp
- alc/ambdec.h
- alc/bformatdec.cpp
- alc/bformatdec.h
- alc/panning.cpp
- alc/mixvoice.cpp
+ alc/uiddefs.cpp
alc/mixer/defs.h
alc/mixer/hrtfbase.h
alc/mixer/mixer_c.cpp
diff --git a/alc/helpers.cpp b/alc/helpers.cpp
index daf09de0..ba95c0f8 100644
--- a/alc/helpers.cpp
+++ b/alc/helpers.cpp
@@ -40,47 +40,6 @@
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
-#ifdef HAVE_PROC_PIDPATH
-#include <libproc.h>
-#endif
-
-#ifdef __FreeBSD__
-#include <sys/types.h>
-#include <sys/sysctl.h>
-#endif
-
-#ifndef AL_NO_UID_DEFS
-#if defined(HAVE_GUIDDEF_H) || defined(HAVE_INITGUID_H)
-#define INITGUID
-#include <windows.h>
-#ifdef HAVE_GUIDDEF_H
-#include <guiddef.h>
-#else
-#include <initguid.h>
-#endif
-
-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_GUID(IID_IDirectSoundNotify, 0xb0210783, 0x89cd, 0x11d0, 0xaf,0x08, 0x00,0xa0,0xc9,0x25,0xcd,0x16);
-
-DEFINE_GUID(CLSID_MMDeviceEnumerator, 0xbcde0395, 0xe52f, 0x467c, 0x8e,0x3d, 0xc4,0x57,0x92,0x91,0x69,0x2e);
-DEFINE_GUID(IID_IMMDeviceEnumerator, 0xa95664d2, 0x9614, 0x4f35, 0xa7,0x46, 0xde,0x8d,0xb6,0x36,0x17,0xe6);
-DEFINE_GUID(IID_IAudioClient, 0x1cb9ad4c, 0xdbfa, 0x4c32, 0xb1,0x78, 0xc2,0xf5,0x68,0xa7,0x03,0xb2);
-DEFINE_GUID(IID_IAudioRenderClient, 0xf294acfc, 0x3146, 0x4483, 0xa7,0xbf, 0xad,0xdc,0xa7,0xc2,0x60,0xe2);
-DEFINE_GUID(IID_IAudioCaptureClient, 0xc8adbd64, 0xe71e, 0x48a0, 0xa4,0xde, 0x18,0x5c,0x39,0x5c,0xd3,0x17);
-
-#ifdef HAVE_WASAPI
-#include <wtypes.h>
-#include <devpropdef.h>
-#include <propkeydef.h>
-DEFINE_DEVPROPKEY(DEVPKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80,0x20, 0x67,0xd1,0x46,0xa8,0x50,0xe0, 14);
-DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_FormFactor, 0x1da5d803, 0xd492, 0x4edd, 0x8c,0x23, 0xe0,0xc0,0xff,0xee,0x7f,0x0e, 0);
-DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_GUID, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x23,0xe0, 0xc0,0xff,0xee,0x7f,0x0e, 4 );
-#endif
-#endif
-#endif /* AL_NO_UID_DEFS */
-
#ifdef HAVE_INTRIN_H
#include <intrin.h>
#endif
@@ -94,6 +53,15 @@ DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_GUID, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x
#include <sys/sysconf.h>
#endif
+#ifdef HAVE_PROC_PIDPATH
+#include <libproc.h>
+#endif
+
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/sysctl.h>
+#endif
+
#ifndef _WIN32
#include <unistd.h>
#elif defined(_WIN32_IE)
diff --git a/alc/uiddefs.cpp b/alc/uiddefs.cpp
new file mode 100644
index 00000000..244c01a5
--- /dev/null
+++ b/alc/uiddefs.cpp
@@ -0,0 +1,37 @@
+
+#include "config.h"
+
+
+#ifndef AL_NO_UID_DEFS
+
+#if defined(HAVE_GUIDDEF_H) || defined(HAVE_INITGUID_H)
+#define INITGUID
+#include <windows.h>
+#ifdef HAVE_GUIDDEF_H
+#include <guiddef.h>
+#else
+#include <initguid.h>
+#endif
+
+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_GUID(IID_IDirectSoundNotify, 0xb0210783, 0x89cd, 0x11d0, 0xaf,0x08, 0x00,0xa0,0xc9,0x25,0xcd,0x16);
+
+DEFINE_GUID(CLSID_MMDeviceEnumerator, 0xbcde0395, 0xe52f, 0x467c, 0x8e,0x3d, 0xc4,0x57,0x92,0x91,0x69,0x2e);
+DEFINE_GUID(IID_IMMDeviceEnumerator, 0xa95664d2, 0x9614, 0x4f35, 0xa7,0x46, 0xde,0x8d,0xb6,0x36,0x17,0xe6);
+DEFINE_GUID(IID_IAudioClient, 0x1cb9ad4c, 0xdbfa, 0x4c32, 0xb1,0x78, 0xc2,0xf5,0x68,0xa7,0x03,0xb2);
+DEFINE_GUID(IID_IAudioRenderClient, 0xf294acfc, 0x3146, 0x4483, 0xa7,0xbf, 0xad,0xdc,0xa7,0xc2,0x60,0xe2);
+DEFINE_GUID(IID_IAudioCaptureClient, 0xc8adbd64, 0xe71e, 0x48a0, 0xa4,0xde, 0x18,0x5c,0x39,0x5c,0xd3,0x17);
+
+#ifdef HAVE_WASAPI
+#include <wtypes.h>
+#include <devpropdef.h>
+#include <propkeydef.h>
+DEFINE_DEVPROPKEY(DEVPKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80,0x20, 0x67,0xd1,0x46,0xa8,0x50,0xe0, 14);
+DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_FormFactor, 0x1da5d803, 0xd492, 0x4edd, 0x8c,0x23, 0xe0,0xc0,0xff,0xee,0x7f,0x0e, 0);
+DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_GUID, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x23,0xe0, 0xc0,0xff,0xee,0x7f,0x0e, 4 );
+#endif
+#endif
+
+#endif /* AL_NO_UID_DEFS */