Browse Source

VST: workaround for position problems in 64-bit cubase.

AU: initialised some channel configs on construction.
tags/2021-05-28
jules 13 years ago
parent
commit
b4446d34ca
2 changed files with 18 additions and 2 deletions
  1. +14
    -2
      modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm
  2. +4
    -0
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp

+ 14
- 2
modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm View File

@@ -119,9 +119,9 @@ public:
{ {
if (activePlugins.size() + activeUIs.size() == 0) if (activePlugins.size() + activeUIs.size() == 0)
{ {
#if BUILD_AU_CARBON_UI
#if BUILD_AU_CARBON_UI
NSApplicationLoad(); NSApplicationLoad();
#endif
#endif
initialiseJuce_GUI(); initialiseJuce_GUI();
} }
@@ -140,6 +140,18 @@ public:
auEvent.mArgument.mParameter.mAudioUnit = GetComponentInstance(); auEvent.mArgument.mParameter.mAudioUnit = GetComponentInstance();
auEvent.mArgument.mParameter.mScope = kAudioUnitScope_Global; auEvent.mArgument.mParameter.mScope = kAudioUnitScope_Global;
auEvent.mArgument.mParameter.mElement = 0; auEvent.mArgument.mParameter.mElement = 0;
CreateElements();
CAStreamBasicDescription streamDescription;
streamDescription.mSampleRate = GetSampleRate();
streamDescription.SetCanonical (channelConfigs[0][1], false);
Outputs().GetIOElement(0)->SetStreamFormat (streamDescription);
#if ! JucePlugin_IsSynth
streamDescription.SetCanonical (channelConfigs[0][0], false);
Inputs().GetIOElement(0)->SetStreamFormat (streamDescription);
#endif
} }
~JuceAU() ~JuceAU()


+ 4
- 0
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -1310,6 +1310,10 @@ public:
const int cw = child->getWidth(); const int cw = child->getWidth();
const int ch = child->getHeight(); const int ch = child->getHeight();
#if JUCE_MAC && JUCE_64BIT
setTopLeftPosition (0, getHeight() - ch);
#endif
wrapper.resizeHostWindow (cw, ch); wrapper.resizeHostWindow (cw, ch);
#if ! JUCE_LINUX // setSize() on linux causes renoise and energyxt to fail. #if ! JUCE_LINUX // setSize() on linux causes renoise and energyxt to fail.


Loading…
Cancel
Save