|
|
@@ -33,7 +33,7 @@ |
|
|
#define JUCE_SUPPORT_CARBON 0
|
|
|
#define JUCE_SUPPORT_CARBON 0
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
#ifdef __clang__
|
|
|
|
|
|
|
|
|
#ifdef JUCE_CLANG
|
|
|
#pragma clang diagnostic push
|
|
|
#pragma clang diagnostic push
|
|
|
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
|
|
|
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
|
|
|
#pragma clang diagnostic ignored "-Wunused-parameter"
|
|
|
#pragma clang diagnostic ignored "-Wunused-parameter"
|
|
|
@@ -42,6 +42,13 @@ |
|
|
#pragma clang diagnostic ignored "-Wconversion"
|
|
|
#pragma clang diagnostic ignored "-Wconversion"
|
|
|
#pragma clang diagnostic ignored "-Woverloaded-virtual"
|
|
|
#pragma clang diagnostic ignored "-Woverloaded-virtual"
|
|
|
#pragma clang diagnostic ignored "-Wextra-semi"
|
|
|
#pragma clang diagnostic ignored "-Wextra-semi"
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wcast-align"
|
|
|
|
|
|
#if __has_warning("-Wzero-as-null-pointer-constant")
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#if __has_warning("-Wnullable-to-nonnull-conversion")
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wnullable-to-nonnull-conversion"
|
|
|
|
|
|
#endif
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
#include "../utility/juce_IncludeSystemHeaders.h"
|
|
|
#include "../utility/juce_IncludeSystemHeaders.h"
|
|
|
@@ -69,7 +76,7 @@ |
|
|
#include "CoreAudioUtilityClasses/AUCarbonViewBase.h"
|
|
|
#include "CoreAudioUtilityClasses/AUCarbonViewBase.h"
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
#ifdef __clang__
|
|
|
|
|
|
|
|
|
#ifdef JUCE_CLANG
|
|
|
#pragma clang diagnostic pop
|
|
|
#pragma clang diagnostic pop
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
@@ -179,7 +186,7 @@ public: |
|
|
jassertfalse;
|
|
|
jassertfalse;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
~JuceAU()
|
|
|
|
|
|
|
|
|
~JuceAU() override
|
|
|
{
|
|
|
{
|
|
|
if (bypassParam != nullptr)
|
|
|
if (bypassParam != nullptr)
|
|
|
bypassParam->removeListener (this);
|
|
|
bypassParam->removeListener (this);
|
|
|
@@ -726,7 +733,7 @@ public: |
|
|
if (juceFilter != nullptr)
|
|
|
if (juceFilter != nullptr)
|
|
|
{
|
|
|
{
|
|
|
CFDictionaryRef dict = (CFDictionaryRef) inData;
|
|
|
CFDictionaryRef dict = (CFDictionaryRef) inData;
|
|
|
CFDataRef data = 0;
|
|
|
|
|
|
|
|
|
CFDataRef data = nullptr;
|
|
|
|
|
|
|
|
|
CFStringRef key = CFStringCreateWithCString (kCFAllocatorDefault, JUCE_STATE_DICTIONARY_KEY, kCFStringEncodingUTF8);
|
|
|
CFStringRef key = CFStringCreateWithCString (kCFAllocatorDefault, JUCE_STATE_DICTIONARY_KEY, kCFStringEncodingUTF8);
|
|
|
|
|
|
|
|
|
@@ -735,7 +742,7 @@ public: |
|
|
|
|
|
|
|
|
if (valuePresent)
|
|
|
if (valuePresent)
|
|
|
{
|
|
|
{
|
|
|
if (data != 0)
|
|
|
|
|
|
|
|
|
if (data != nullptr)
|
|
|
{
|
|
|
{
|
|
|
const int numBytes = (int) CFDataGetLength (data);
|
|
|
const int numBytes = (int) CFDataGetLength (data);
|
|
|
const juce::uint8* const rawBytes = CFDataGetBytePtr (data);
|
|
|
const juce::uint8* const rawBytes = CFDataGetBytePtr (data);
|
|
|
@@ -968,10 +975,10 @@ public: |
|
|
|
|
|
|
|
|
if (auto* valueStrings = parameterValueStringArrays[index])
|
|
|
if (auto* valueStrings = parameterValueStringArrays[index])
|
|
|
{
|
|
|
{
|
|
|
*outStrings = CFArrayCreate (NULL,
|
|
|
|
|
|
|
|
|
*outStrings = CFArrayCreate (nullptr,
|
|
|
(const void **) valueStrings->getRawDataPointer(),
|
|
|
(const void **) valueStrings->getRawDataPointer(),
|
|
|
valueStrings->size(),
|
|
|
valueStrings->size(),
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
nullptr);
|
|
|
|
|
|
|
|
|
return noErr;
|
|
|
return noErr;
|
|
|
}
|
|
|
}
|
|
|
@@ -1129,7 +1136,7 @@ public: |
|
|
{
|
|
|
{
|
|
|
auEvent.mEventType = type;
|
|
|
auEvent.mEventType = type;
|
|
|
auEvent.mArgument.mParameter.mParameterID = getAUParameterIDForIndex (juceParamIndex);
|
|
|
auEvent.mArgument.mParameter.mParameterID = getAUParameterIDForIndex (juceParamIndex);
|
|
|
AUEventListenerNotify (0, 0, &auEvent);
|
|
|
|
|
|
|
|
|
AUEventListenerNotify (nullptr, nullptr, &auEvent);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
void audioProcessorParameterChanged (AudioProcessor*, int index, float /*newValue*/) override
|
|
|
void audioProcessorParameterChanged (AudioProcessor*, int index, float /*newValue*/) override
|
|
|
@@ -1402,7 +1409,7 @@ public: |
|
|
clearPresetsArray();
|
|
|
clearPresetsArray();
|
|
|
presetsArray.insertMultiple (0, AUPreset(), numPrograms);
|
|
|
presetsArray.insertMultiple (0, AUPreset(), numPrograms);
|
|
|
|
|
|
|
|
|
CFMutableArrayRef presetsArrayRef = CFArrayCreateMutable (0, numPrograms, 0);
|
|
|
|
|
|
|
|
|
CFMutableArrayRef presetsArrayRef = CFArrayCreateMutable (nullptr, numPrograms, nullptr);
|
|
|
|
|
|
|
|
|
for (int i = 0; i < numPrograms; ++i)
|
|
|
for (int i = 0; i < numPrograms; ++i)
|
|
|
{
|
|
|
{
|
|
|
@@ -1478,7 +1485,7 @@ public: |
|
|
setBounds (getSizeToContainChild());
|
|
|
setBounds (getSizeToContainChild());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
~EditorCompHolder()
|
|
|
|
|
|
|
|
|
~EditorCompHolder() override
|
|
|
{
|
|
|
{
|
|
|
deleteAllChildren(); // note that we can't use a std::unique_ptr because the editor may
|
|
|
deleteAllChildren(); // note that we can't use a std::unique_ptr because the editor may
|
|
|
// have been transferred to another parent which takes over ownership.
|
|
|
// have been transferred to another parent which takes over ownership.
|
|
|
@@ -1564,7 +1571,7 @@ public: |
|
|
NSWindow* hostWindow = [hostView window];
|
|
|
NSWindow* hostWindow = [hostView window];
|
|
|
|
|
|
|
|
|
[hostWindow makeFirstResponder: hostView];
|
|
|
[hostWindow makeFirstResponder: hostView];
|
|
|
[hostView keyDown: [NSApp currentEvent]];
|
|
|
|
|
|
|
|
|
[hostView keyDown: (NSEvent*) [NSApp currentEvent]];
|
|
|
[hostWindow makeFirstResponder: view];
|
|
|
[hostWindow makeFirstResponder: view];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1976,7 +1983,7 @@ private: |
|
|
|
|
|
|
|
|
#if JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS
|
|
|
#if JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS
|
|
|
// studio one doesn't like negative parameters
|
|
|
// studio one doesn't like negative parameters
|
|
|
paramHash &= ~(1 << (sizeof (AudioUnitParameterID) * 8 - 1));
|
|
|
|
|
|
|
|
|
paramHash &= ~(((AudioUnitParameterID) 1) << (sizeof (AudioUnitParameterID) * 8 - 1));
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
return forceUseLegacyParamIDs ? static_cast<AudioUnitParameterID> (juceParamID.getIntValue())
|
|
|
return forceUseLegacyParamIDs ? static_cast<AudioUnitParameterID> (juceParamID.getIntValue())
|
|
|
@@ -2487,7 +2494,19 @@ JUCE_FACTORY_ENTRY (JuceAU, JucePlugin_AUExportPrefix) |
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
#if ! JUCE_DISABLE_AU_FACTORY_ENTRY
|
|
|
#if ! JUCE_DISABLE_AU_FACTORY_ENTRY
|
|
|
|
|
|
#ifdef JUCE_CLANG
|
|
|
|
|
|
#pragma clang diagnostic push
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wcast-align"
|
|
|
|
|
|
#if __has_warning("-Wzero-as-null-pointer-constant")
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
#include "CoreAudioUtilityClasses/AUPlugInDispatch.cpp"
|
|
|
#include "CoreAudioUtilityClasses/AUPlugInDispatch.cpp"
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef JUCE_CLANG
|
|
|
|
|
|
#pragma clang diagnostic push
|
|
|
|
|
|
#endif
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
#endif
|
|
|
#endif
|