| @@ -24,11 +24,13 @@ | |||||
| ============================================================================== | ============================================================================== | ||||
| */ | */ | ||||
| #if JucePlugin_Build_RTAS | |||||
| #pragma once | |||||
| #include "../../juce_core/system/juce_TargetPlatform.h" | #include "../../juce_core/system/juce_TargetPlatform.h" | ||||
| #include "../utility/juce_CheckSettingMacros.h" | #include "../utility/juce_CheckSettingMacros.h" | ||||
| #if JucePlugin_Build_RTAS | |||||
| #include "juce_RTAS_DigiCode_Header.h" | #include "juce_RTAS_DigiCode_Header.h" | ||||
| /* | /* | ||||
| @@ -24,11 +24,13 @@ | |||||
| ============================================================================== | ============================================================================== | ||||
| */ | */ | ||||
| #if JucePlugin_Build_RTAS | |||||
| #pragma once | |||||
| #include "../../juce_core/system/juce_TargetPlatform.h" | #include "../../juce_core/system/juce_TargetPlatform.h" | ||||
| #include "../utility/juce_CheckSettingMacros.h" | #include "../utility/juce_CheckSettingMacros.h" | ||||
| #if JucePlugin_Build_RTAS | |||||
| #include "juce_RTAS_DigiCode_Header.h" | #include "juce_RTAS_DigiCode_Header.h" | ||||
| #ifdef __clang__ | #ifdef __clang__ | ||||
| @@ -24,6 +24,8 @@ | |||||
| ============================================================================== | ============================================================================== | ||||
| */ | */ | ||||
| #pragma once | |||||
| #include "../../juce_core/system/juce_TargetPlatform.h" | #include "../../juce_core/system/juce_TargetPlatform.h" | ||||
| #include "../utility/juce_CheckSettingMacros.h" | #include "../utility/juce_CheckSettingMacros.h" | ||||
| @@ -24,6 +24,8 @@ | |||||
| ============================================================================== | ============================================================================== | ||||
| */ | */ | ||||
| #pragma once | |||||
| #if JucePlugin_Build_RTAS | #if JucePlugin_Build_RTAS | ||||
| #ifdef _MSC_VER | #ifdef _MSC_VER | ||||
| @@ -24,11 +24,11 @@ | |||||
| ============================================================================== | ============================================================================== | ||||
| */ | */ | ||||
| #if JucePlugin_Build_RTAS | |||||
| #include "../../juce_core/system/juce_TargetPlatform.h" | #include "../../juce_core/system/juce_TargetPlatform.h" | ||||
| #include "../utility/juce_CheckSettingMacros.h" | #include "../utility/juce_CheckSettingMacros.h" | ||||
| #if JucePlugin_Build_RTAS | |||||
| // Horrible carbon-based fix for a cocoa bug, where an NSWindow that wraps a carbon | // Horrible carbon-based fix for a cocoa bug, where an NSWindow that wraps a carbon | ||||
| // window fails to keep its position updated when the user drags the window around.. | // window fails to keep its position updated when the user drags the window around.. | ||||
| #define WINDOWPOSITION_BODGE 1 | #define WINDOWPOSITION_BODGE 1 | ||||
| @@ -38,9 +38,6 @@ | |||||
| #include "../utility/juce_IncludeModuleHeaders.h" | #include "../utility/juce_IncludeModuleHeaders.h" | ||||
| #include "../utility/juce_CarbonVisibility.h" | #include "../utility/juce_CarbonVisibility.h" | ||||
| namespace juce | |||||
| { | |||||
| using namespace juce; | using namespace juce; | ||||
| //============================================================================== | //============================================================================== | ||||
| @@ -170,6 +167,4 @@ void forwardCurrentKeyEventToHostWindow() | |||||
| } | } | ||||
| } | } | ||||
| } // namespace juce | |||||
| #endif | #endif | ||||
| @@ -24,11 +24,11 @@ | |||||
| ============================================================================== | ============================================================================== | ||||
| */ | */ | ||||
| #if JucePlugin_Build_RTAS | |||||
| #include "../../juce_core/system/juce_TargetPlatform.h" | #include "../../juce_core/system/juce_TargetPlatform.h" | ||||
| #include "../utility/juce_CheckSettingMacros.h" | #include "../utility/juce_CheckSettingMacros.h" | ||||
| #if JucePlugin_Build_RTAS | |||||
| #ifdef _MSC_VER | #ifdef _MSC_VER | ||||
| // (this is a workaround for a build problem in VC9) | // (this is a workaround for a build problem in VC9) | ||||
| #define _DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY | #define _DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY | ||||
| @@ -111,11 +111,6 @@ | |||||
| #include "../utility/juce_IncludeModuleHeaders.h" | #include "../utility/juce_IncludeModuleHeaders.h" | ||||
| using namespace juce; | |||||
| namespace juce | |||||
| { | |||||
| #ifdef _MSC_VER | #ifdef _MSC_VER | ||||
| #pragma pack (pop) | #pragma pack (pop) | ||||
| @@ -166,6 +161,8 @@ static const int bypassControlIndex = 1; | |||||
| static int numInstances = 0; | static int numInstances = 0; | ||||
| using namespace juce; | |||||
| //============================================================================== | //============================================================================== | ||||
| class JucePlugInProcess : public CEffectProcessMIDI, | class JucePlugInProcess : public CEffectProcessMIDI, | ||||
| public CEffectProcessRTAS, | public CEffectProcessRTAS, | ||||
| @@ -686,7 +683,7 @@ public: | |||||
| auto paramIndex = controlIndex - 2; | auto paramIndex = controlIndex - 2; | ||||
| auto floatValue = longToFloat (value); | auto floatValue = longToFloat (value); | ||||
| if (auto* param = owner.getParameters()[paramIndex]) | |||||
| if (auto* param = juceFilter->getParameters()[paramIndex]) | |||||
| { | { | ||||
| param->setValue (floatValue); | param->setValue (floatValue); | ||||
| param->sendValueChangedMessageToListeners (floatValue); | param->sendValueChangedMessageToListeners (floatValue); | ||||
| @@ -1050,8 +1047,6 @@ private: | |||||
| void initialiseMacRTAS(); | void initialiseMacRTAS(); | ||||
| } // namespace juce | |||||
| CProcessGroupInterface* CProcessGroup::CreateProcessGroup() | CProcessGroupInterface* CProcessGroup::CreateProcessGroup() | ||||
| { | { | ||||
| #if JUCE_MAC | #if JUCE_MAC | ||||