@@ -52,6 +52,8 @@ | |||||
#if JUCE_WINDOWS | #if JUCE_WINDOWS | ||||
static void setParentProcessID (int); | static void setParentProcessID (int); | ||||
static int getCurrentProcessID(); | static int getCurrentProcessID(); | ||||
#else | |||||
#include <unistd.h> | |||||
#endif | #endif | ||||
//============================================================================== | //============================================================================== | ||||
@@ -1815,7 +1815,7 @@ private: | |||||
} | } | ||||
} | } | ||||
void processBlock (AudioBuffer<float>& buffer, MidiBuffer& midiBuffer) noexcept | |||||
void processBlock (juce::AudioBuffer<float>& buffer, MidiBuffer& midiBuffer) noexcept | |||||
{ | { | ||||
const ScopedLock sl (juceFilter->getCallbackLock()); | const ScopedLock sl (juceFilter->getCallbackLock()); | ||||
@@ -1130,7 +1130,7 @@ private: | |||||
AudioBufferList* bufferList = nullptr; | AudioBufferList* bufferList = nullptr; | ||||
int maxFrames, numberOfChannels; | int maxFrames, numberOfChannels; | ||||
bool isInterleaved; | bool isInterleaved; | ||||
AudioBuffer<float> scratchBuffer; | |||||
juce::AudioBuffer<float> scratchBuffer; | |||||
}; | }; | ||||
//============================================================================== | //============================================================================== | ||||
@@ -1557,7 +1557,7 @@ private: | |||||
return noErr; | return noErr; | ||||
} | } | ||||
void processBlock (AudioBuffer<float>& buffer, MidiBuffer& midiBuffer) noexcept | |||||
void processBlock (juce::AudioBuffer<float>& buffer, MidiBuffer& midiBuffer) noexcept | |||||
{ | { | ||||
auto& processor = getAudioProcessor(); | auto& processor = getAudioProcessor(); | ||||
const ScopedLock sl (processor.getCallbackLock()); | const ScopedLock sl (processor.getCallbackLock()); | ||||
@@ -20,6 +20,10 @@ | |||||
============================================================================== | ============================================================================== | ||||
*/ | */ | ||||
#if JUCE_MAC || JUCE_IOS | |||||
using OSType = uint32_t; | |||||
#endif | |||||
namespace juce | namespace juce | ||||
{ | { | ||||
@@ -20,6 +20,10 @@ | |||||
============================================================================== | ============================================================================== | ||||
*/ | */ | ||||
#if JUCE_MAC || JUCE_IOS | |||||
#include <libkern/OSByteOrder.h> | |||||
#endif | |||||
namespace juce | namespace juce | ||||
{ | { | ||||
@@ -69,7 +69,8 @@ | |||||
#define JUCE_LINUX 1 | #define JUCE_LINUX 1 | ||||
#elif defined (__APPLE_CPP__) || defined (__APPLE_CC__) | #elif defined (__APPLE_CPP__) || defined (__APPLE_CC__) | ||||
#define CF_EXCLUDE_CSTD_HEADERS 1 | #define CF_EXCLUDE_CSTD_HEADERS 1 | ||||
#include <CoreFoundation/CoreFoundation.h> // (needed to find out what platform we're using) | |||||
#include <TargetConditionals.h> // (needed to find out what platform we're using) | |||||
#include <AvailabilityMacros.h> | |||||
#include "../native/juce_mac_ClangBugWorkaround.h" | #include "../native/juce_mac_ClangBugWorkaround.h" | ||||
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR | #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR | ||||
@@ -20,6 +20,20 @@ | |||||
============================================================================== | ============================================================================== | ||||
*/ | */ | ||||
#if JUCE_MAC || JUCE_IOS | |||||
// Annoyingly we can only forward-declare a typedef by forward-declaring the | |||||
// aliased type | |||||
#if __has_attribute(objc_bridge) | |||||
#define JUCE_CF_BRIDGED_TYPE(T) __attribute__((objc_bridge(T))) | |||||
#else | |||||
#define JUCE_CF_BRIDGED_TYPE(T) | |||||
#endif | |||||
typedef const struct JUCE_CF_BRIDGED_TYPE(NSString) __CFString * CFStringRef; | |||||
#undef JUCE_CF_BRIDGED_TYPE | |||||
#endif | |||||
namespace juce | namespace juce | ||||
{ | { | ||||