Browse Source

Fixed some RTAS compilation errors

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
3633aff4dd
6 changed files with 17 additions and 19 deletions
  1. +3
    -1
      modules/juce_audio_plugin_client/RTAS/juce_RTAS_DigiCode1.cpp
  2. +3
    -1
      modules/juce_audio_plugin_client/RTAS/juce_RTAS_DigiCode2.cpp
  3. +2
    -0
      modules/juce_audio_plugin_client/RTAS/juce_RTAS_DigiCode3.cpp
  4. +2
    -0
      modules/juce_audio_plugin_client/RTAS/juce_RTAS_DigiCode_Header.h
  5. +2
    -7
      modules/juce_audio_plugin_client/RTAS/juce_RTAS_MacUtilities.mm
  6. +5
    -10
      modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp

+ 3
- 1
modules/juce_audio_plugin_client/RTAS/juce_RTAS_DigiCode1.cpp View File

@@ -24,11 +24,13 @@
==============================================================================
*/
#if JucePlugin_Build_RTAS
#pragma once
#include "../../juce_core/system/juce_TargetPlatform.h"
#include "../utility/juce_CheckSettingMacros.h"
#if JucePlugin_Build_RTAS
#include "juce_RTAS_DigiCode_Header.h"
/*


+ 3
- 1
modules/juce_audio_plugin_client/RTAS/juce_RTAS_DigiCode2.cpp View File

@@ -24,11 +24,13 @@
==============================================================================
*/
#if JucePlugin_Build_RTAS
#pragma once
#include "../../juce_core/system/juce_TargetPlatform.h"
#include "../utility/juce_CheckSettingMacros.h"
#if JucePlugin_Build_RTAS
#include "juce_RTAS_DigiCode_Header.h"
#ifdef __clang__


+ 2
- 0
modules/juce_audio_plugin_client/RTAS/juce_RTAS_DigiCode3.cpp View File

@@ -24,6 +24,8 @@
==============================================================================
*/
#pragma once
#include "../../juce_core/system/juce_TargetPlatform.h"
#include "../utility/juce_CheckSettingMacros.h"


+ 2
- 0
modules/juce_audio_plugin_client/RTAS/juce_RTAS_DigiCode_Header.h View File

@@ -24,6 +24,8 @@
==============================================================================
*/
#pragma once
#if JucePlugin_Build_RTAS
#ifdef _MSC_VER


+ 2
- 7
modules/juce_audio_plugin_client/RTAS/juce_RTAS_MacUtilities.mm View File

@@ -24,11 +24,11 @@
==============================================================================
*/
#if JucePlugin_Build_RTAS
#include "../../juce_core/system/juce_TargetPlatform.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
// window fails to keep its position updated when the user drags the window around..
#define WINDOWPOSITION_BODGE 1
@@ -38,9 +38,6 @@
#include "../utility/juce_IncludeModuleHeaders.h"
#include "../utility/juce_CarbonVisibility.h"
namespace juce
{
using namespace juce;
//==============================================================================
@@ -170,6 +167,4 @@ void forwardCurrentKeyEventToHostWindow()
}
}
} // namespace juce
#endif

+ 5
- 10
modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp View File

@@ -24,11 +24,11 @@
==============================================================================
*/
#if JucePlugin_Build_RTAS
#include "../../juce_core/system/juce_TargetPlatform.h"
#include "../utility/juce_CheckSettingMacros.h"
#if JucePlugin_Build_RTAS
#ifdef _MSC_VER
// (this is a workaround for a build problem in VC9)
#define _DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY
@@ -111,11 +111,6 @@
#include "../utility/juce_IncludeModuleHeaders.h"
using namespace juce;
namespace juce
{
#ifdef _MSC_VER
#pragma pack (pop)
@@ -166,6 +161,8 @@ static const int bypassControlIndex = 1;
static int numInstances = 0;
using namespace juce;
//==============================================================================
class JucePlugInProcess : public CEffectProcessMIDI,
public CEffectProcessRTAS,
@@ -686,7 +683,7 @@ public:
auto paramIndex = controlIndex - 2;
auto floatValue = longToFloat (value);
if (auto* param = owner.getParameters()[paramIndex])
if (auto* param = juceFilter->getParameters()[paramIndex])
{
param->setValue (floatValue);
param->sendValueChangedMessageToListeners (floatValue);
@@ -1050,8 +1047,6 @@ private:
void initialiseMacRTAS();
} // namespace juce
CProcessGroupInterface* CProcessGroup::CreateProcessGroup()
{
#if JUCE_MAC


Loading…
Cancel
Save