Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
3.1KB

  1. diff -Naur configure.in configure.in
  2. --- a/configure.in 2016-10-30 02:23:04.000000000 +0100
  3. +++ b/configure.in 2017-05-29 22:20:15.000000000 +0200
  4. @@ -346,7 +346,7 @@
  5. add_objects src/hostapi/wasapi/pa_win_wasapi.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/os/win/pa_win_waveformat.o
  6. LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
  7. DLL_LIBS="${DLL_LIBS} -lwinmm -lole32"
  8. - CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hostapi/wasapi/mingw-include -UPA_USE_WASAPI -DPA_USE_WASAPI=1"
  9. + CFLAGS="$CFLAGS -UPA_USE_WASAPI -DPA_USE_WASAPI=1"
  10. fi
  11. ;;
  12. diff -Naur src/hostapi/dsound/pa_win_ds.c src/hostapi/dsound/pa_win_ds.c
  13. --- a/src/hostapi/dsound/pa_win_ds.c 2016-10-30 02:23:04.000000000 +0100
  14. +++ b/src/hostapi/dsound/pa_win_ds.c 2017-05-29 22:20:15.000000000 +0200
  15. @@ -904,7 +904,10 @@
  16. case DSSPEAKER_STEREO: count = 2; break;
  17. case DSSPEAKER_SURROUND: count = 4; break;
  18. case DSSPEAKER_5POINT1: count = 6; break;
  19. - case DSSPEAKER_7POINT1: count = 8; break;
  20. +#ifndef DSSPEAKER_7POINT1
  21. +#define DSSPEAKER_7POINT1 0x00000007
  22. +#endif
  23. + case DSSPEAKER_7POINT1: count = 8; break;
  24. #ifndef DSSPEAKER_7POINT1_SURROUND
  25. #define DSSPEAKER_7POINT1_SURROUND 0x00000008
  26. #endif
  27. @@ -2136,7 +2139,7 @@
  28. }
  29. else
  30. {
  31. - CalculateBufferSettings( &stream->hostBufferSizeFrames, &pollingPeriodFrames,
  32. + CalculateBufferSettings( (unsigned long*)&stream->hostBufferSizeFrames, &pollingPeriodFrames,
  33. /* isFullDuplex = */ (inputParameters && outputParameters),
  34. suggestedInputLatencyFrames,
  35. suggestedOutputLatencyFrames,
  36. diff -Naur src/hostapi/wasapi/pa_win_wasapi.c src/hostapi/wasapi/pa_win_wasapi.c
  37. --- a/src/hostapi/wasapi/pa_win_wasapi.c 2016-10-30 02:23:04.000000000 +0100
  38. +++ b/src/hostapi/wasapi/pa_win_wasapi.c 2017-05-29 22:20:15.000000000 +0200
  39. @@ -54,16 +54,22 @@
  40. #endif
  41. // WASAPI
  42. +// using adjustments for MinGW build from @mgeier/MXE
  43. +// https://github.com/mxe/mxe/commit/f4bbc45682f021948bdaefd9fd476e2a04c4740f
  44. #include <mmreg.h> // must be before other Wasapi headers
  45. -#if defined(_MSC_VER) && (_MSC_VER >= 1400)
  46. - #include <Avrt.h>
  47. +#if defined(_MSC_VER) && (_MSC_VER >= 1400) || defined(__MINGW64_VERSION_MAJOR)
  48. + #include <avrt.h>
  49. #define COBJMACROS
  50. - #include <Audioclient.h>
  51. + #include <audioclient.h>
  52. #include <endpointvolume.h>
  53. #define INITGUID // Avoid additional linkage of static libs, excessive code will be optimized out by the compiler
  54. #include <mmdeviceapi.h>
  55. - #include <functiondiscoverykeys.h>
  56. - #include <devicetopology.h> // Used to get IKsJackDescription interface
  57. +#ifndef _MSC_VER
  58. + #include <functiondiscoverykeys_devpkey.h>
  59. +#endif
  60. + #include <functiondiscoverykeys.h>
  61. + #include <mmdeviceapi.h>
  62. + #include <devicetopology.h> // Used to get IKsJackDescription interface
  63. #undef INITGUID
  64. #endif
  65. #ifndef __MWERKS__