Browse Source

Try to fix drowAudio build on macOS

tags/2020-12-27
falkTX 3 years ago
parent
commit
df6e056173
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 11 additions and 11 deletions
  1. +3
    -3
      libs/drowaudio/source/dRowAudio/dRowAudio.cpp
  2. +8
    -8
      libs/drowaudio/source/dRowAudio/dRowAudio.h

+ 3
- 3
libs/drowaudio/source/dRowAudio/dRowAudio.cpp View File

@@ -34,6 +34,8 @@

//#include "../juce_core/native/juce_BasicNativeHeaders.h"

#include "dRowAudio.h"

#if JUCE_MAC || JUCE_IOS
#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>
@@ -44,8 +46,6 @@
#import <MediaPlayer/MediaPlayer.h>
#endif

#include "dRowAudio.h"

#include "audio/soundtouch/SoundTouch_Source.cpp"

namespace drow {
@@ -124,4 +124,4 @@ namespace drow {
#include "utility/dRowAudio_UnityProjectBuilder.cpp"
#include "parameters/dRowAudio_PluginParameter.cpp"

}
}

+ 8
- 8
libs/drowaudio/source/dRowAudio/dRowAudio.h View File

@@ -140,6 +140,14 @@
*/

//=============================================================================
#if JUCE_MAC || JUCE_IOS
#define Point CarbonDummyPointName
#define Component CarbonDummyCompName
#include <Accelerate/Accelerate.h>
#undef Point
#undef Component
#endif

#include <modules/juce_audio_basics/juce_audio_basics.h>
#include <modules/juce_audio_devices/juce_audio_devices.h>
#include <modules/juce_audio_formats/juce_audio_formats.h>
@@ -154,14 +162,6 @@
#include <modules/juce_cryptography/juce_cryptography.h>
#endif

#if JUCE_MAC || JUCE_IOS
#define Point CarbonDummyPointName
#define Component CarbonDummyCompName
#include <Accelerate/Accelerate.h>
#undef Point
#undef Component
#endif

#undef min
#undef max



Loading…
Cancel
Save