Browse Source

fixes for timecode + showing up in some windows installations

tags/2021-05-28
jules 18 years ago
parent
commit
477aeecfab
1 changed files with 12 additions and 10 deletions
  1. +12
    -10
      extras/audio plugins/wrapper/formats/RTAS/juce_RTASWrapper.cpp

+ 12
- 10
extras/audio plugins/wrapper/formats/RTAS/juce_RTASWrapper.cpp View File

@@ -97,6 +97,7 @@ const int midiBufferSize = 1024;
const OSType juceChunkType = 'juce'; const OSType juceChunkType = 'juce';
static const int bypassControlIndex = 1; static const int bypassControlIndex = 1;
//============================================================================== //==============================================================================
static float longToFloat (const long n) throw() static float longToFloat (const long n) throw()
{ {
@@ -176,6 +177,7 @@ public:
r.top = 0; r.top = 0;
r.right = editorComp->getWidth(); r.right = editorComp->getWidth();
r.bottom = editorComp->getHeight(); r.bottom = editorComp->getHeight();
SetRect (&r); SetRect (&r);
} }
@@ -521,7 +523,9 @@ public:
protected: protected:
ComponentResult GetDelaySamplesLong (long* aNumSamples) ComponentResult GetDelaySamplesLong (long* aNumSamples)
{ {
*aNumSamples = JucePlugin_Latency;
if (aNumSamples != 0)
*aNumSamples = JucePlugin_Latency;
return noErr; return noErr;
} }
@@ -674,10 +678,8 @@ protected:
*size = sizeof (SFicPlugInChunkHeader) + tempFilterData.getSize(); *size = sizeof (SFicPlugInChunkHeader) + tempFilterData.getSize();
return noErr; return noErr;
} }
else
{
return CEffectProcessMIDI::GetChunkSize (chunkID, size);
}
return CEffectProcessMIDI::GetChunkSize (chunkID, size);
} }
ComponentResult GetChunk (OSType chunkID, SFicPlugInChunk* chunk) ComponentResult GetChunk (OSType chunkID, SFicPlugInChunk* chunk)
@@ -694,10 +696,8 @@ protected:
return noErr; return noErr;
} }
else
{
return CEffectProcessMIDI::GetChunk (chunkID, chunk);
}
return CEffectProcessMIDI::GetChunk (chunkID, chunk);
} }
ComponentResult SetChunk (OSType chunkID, SFicPlugInChunk* chunk) ComponentResult SetChunk (OSType chunkID, SFicPlugInChunk* chunk)
@@ -804,7 +804,7 @@ protected:
break; break;
} }
info.editOriginTime = fTimeCodeInfo.mFrameOffset * framesPerSec;
info.editOriginTime = fTimeCodeInfo.mFrameOffset / framesPerSec;
return true; return true;
} }
@@ -916,6 +916,7 @@ public:
~JucePlugInGroup() ~JucePlugInGroup()
{ {
shutdownJuce_GUI(); shutdownJuce_GUI();
shutdownJuce_NonGUI();
} }
//============================================================================== //==============================================================================
@@ -1012,5 +1013,6 @@ private:
CProcessGroupInterface* CProcessGroup::CreateProcessGroup() CProcessGroupInterface* CProcessGroup::CreateProcessGroup()
{ {
initialiseJuce_NonGUI();
return new JucePlugInGroup(); return new JucePlugInGroup();
} }

Loading…
Cancel
Save