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
|
|
@ -904,6 +904,9 @@ static PaError AddOutputDeviceInfoFromDirectSound(
|
|||
case DSSPEAKER_STEREO: count = 2; break;
|
||||
case DSSPEAKER_SURROUND: count = 4; break;
|
||||
case DSSPEAKER_5POINT1: count = 6; break;
|
||||
#ifndef DSSPEAKER_7POINT1
|
||||
#define DSSPEAKER_7POINT1 0x00000007
|
||||
#endif
|
||||
case DSSPEAKER_7POINT1: count = 8; break;
|
||||
#ifndef DSSPEAKER_7POINT1_SURROUND
|
||||
#define DSSPEAKER_7POINT1_SURROUND 0x00000008
|
||||
|
|
@ -2136,7 +2139,7 @@ static PaError OpenStream( struct PaUtilHostApiRepresentation *hostApi,
|
|||
}
|
||||
else
|
||||
{
|
||||
CalculateBufferSettings( &stream->hostBufferSizeFrames, &pollingPeriodFrames,
|
||||
CalculateBufferSettings( (unsigned long*)&stream->hostBufferSizeFrames, &pollingPeriodFrames,
|
||||
/* isFullDuplex = */ (inputParameters && outputParameters),
|
||||
suggestedInputLatencyFrames,
|
||||
suggestedOutputLatencyFrames,
|
||||
|
|
|
|||
|
|
@ -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