commit Rainer's work and make some minor modifications to the top-level cmakelists to make visual studio happy
This commit is contained in:
parent
4f6fd67c3f
commit
ea11061b20
6 changed files with 210 additions and 73 deletions
|
|
@ -60,16 +60,21 @@
|
|||
#endif
|
||||
|
||||
// WASAPI
|
||||
// using adjustments for MinGW build from @mgeier/MXE
|
||||
// https://github.com/mxe/mxe/commit/f4bbc45682f021948bdaefd9fd476e2a04c4740f
|
||||
#include <mmreg.h> // must be before other Wasapi headers
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
||||
#include <Avrt.h>
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1400) || defined(__MINGW64_VERSION_MAJOR)
|
||||
#include <avrt.h>
|
||||
#define COBJMACROS
|
||||
#include <Audioclient.h>
|
||||
#include <audioclient.h>
|
||||
#include <endpointvolume.h>
|
||||
#define INITGUID // Avoid additional linkage of static libs, excessive code will be optimized out by the compiler
|
||||
#include <mmdeviceapi.h>
|
||||
#ifndef _MSC_VER
|
||||
#include <functiondiscoverykeys_devpkey.h>
|
||||
#endif
|
||||
#include <functiondiscoverykeys.h>
|
||||
#include <devicetopology.h> // Used to get IKsJackDescription interface
|
||||
#include <mmdeviceapi.h>
|
||||
#include <devicetopology.h> // Used to get IKsJackDescription interface
|
||||
#undef INITGUID
|
||||
#endif
|
||||
#ifndef __MWERKS__
|
||||
|
|
|
|||
Loading…
Reference in a new issue