1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
jules 2007-10-16 19:36:27 +00:00
parent e76fe601bf
commit ac7c8524ce
4 changed files with 34 additions and 45 deletions

View file

@ -173,11 +173,10 @@ static Array <VSTPluginWindow*> activeWindows;
//==============================================================================
#if JUCE_MAC
namespace JUCE_NAMESPACE
{
extern bool juce_isHIViewCreatedByJuce (HIViewRef view);
extern bool juce_isWindowCreatedByJuce (WindowRef window);
}
BEGIN_JUCE_NAMESPACE
extern bool juce_isHIViewCreatedByJuce (HIViewRef view);
extern bool juce_isWindowCreatedByJuce (WindowRef window);
END_JUCE_NAMESPACE
#if JUCE_PPC
static void* NewCFMFromMachO (void* const machofp) throw()
@ -791,8 +790,6 @@ void VSTPluginInstance::prepareToPlay (double sampleRate_,
setLatencySamples (effect->initialDelay);
midiCollector.reset (sampleRate_);
juce_free (channels);
channels = (float**) juce_calloc (sizeof (float*) * jmax (16, getNumOutputChannels() + 2, getNumInputChannels() + 2));
@ -845,7 +842,6 @@ void VSTPluginInstance::releaseResources()
setPower (false);
}
midiCollector.reset (getSampleRate());
tempBuffer.setSize (1, 1);
incomingMidi.clear();
@ -1076,7 +1072,7 @@ public:
closePluginWindow();
activeWindows.removeValue (this);
plugin.editorBeingDeleted (this);
plugin.editorBeingDeleted (this);
}
//==============================================================================

View file

@ -57,7 +57,7 @@ struct fxProgram;
//==============================================================================
/**
An instance of a plugin, created by a VSTPluginType.
An instance of a plugin, created by a VSTPluginFormat.
*/
class VSTPluginInstance : public AudioPluginInstance,
@ -128,7 +128,6 @@ public:
juce_UseDebuggingNewOperator
private:
friend class VSTPluginType;
friend class VSTPluginWindow;
friend class VSTPluginFormat;
@ -137,7 +136,6 @@ private:
CriticalSection lock;
bool wantsMidiMessages, initialised, isPowerOn;
mutable StringArray programNames;
MidiMessageCollector midiCollector;
AudioSampleBuffer tempBuffer;
CriticalSection midiInLock;
MidiBuffer incomingMidi;