1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

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

AU: initialised some channel configs on construction.
This commit is contained in:
jules 2012-06-15 09:16:30 +01:00
parent 82a964de48
commit b4446d34ca
2 changed files with 18 additions and 2 deletions

View file

@ -119,9 +119,9 @@ public:
{
if (activePlugins.size() + activeUIs.size() == 0)
{
#if BUILD_AU_CARBON_UI
#if BUILD_AU_CARBON_UI
NSApplicationLoad();
#endif
#endif
initialiseJuce_GUI();
}
@ -140,6 +140,18 @@ public:
auEvent.mArgument.mParameter.mAudioUnit = GetComponentInstance();
auEvent.mArgument.mParameter.mScope = kAudioUnitScope_Global;
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()

View file

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