upgrade to JUCE 5.4.3. Remove (probably) unused JUCE modules. Remove VST2 target (it's been end-of-life'd by Steinberg and by JUCE)
This commit is contained in:
@ -39,10 +39,10 @@ namespace AudioPluginFormatHelpers
|
||||
: instance (inInstance), error (inError), compCallback (inCompletion), owner (invoker)
|
||||
{}
|
||||
|
||||
void messageCallback() override { compCallback->completionCallback (instance, error); }
|
||||
void messageCallback() override { compCallback->completionCallback (instance.release(), error); }
|
||||
|
||||
//==============================================================================
|
||||
AudioPluginInstance* instance;
|
||||
std::unique_ptr<AudioPluginInstance> instance;
|
||||
String error;
|
||||
std::unique_ptr<AudioPluginFormat::InstantiationCompletionCallback> compCallback;
|
||||
std::unique_ptr<CallbackInvoker> owner;
|
||||
@ -199,7 +199,7 @@ void AudioPluginFormat::createPluginInstanceOnMessageThread (const PluginDescrip
|
||||
AudioPluginFormat::InstantiationCompletionCallback* callback)
|
||||
{
|
||||
jassert (callback != nullptr);
|
||||
jassert (MessageManager::getInstance()->isThisTheMessageThread());
|
||||
JUCE_ASSERT_MESSAGE_THREAD
|
||||
|
||||
//==============================================================================
|
||||
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
/** Structure used for callbacks when instantiation is completed. */
|
||||
struct JUCE_API InstantiationCompletionCallback
|
||||
{
|
||||
virtual ~InstantiationCompletionCallback() {}
|
||||
virtual ~InstantiationCompletionCallback() = default;
|
||||
virtual void completionCallback (AudioPluginInstance* instance, const String& error) = 0;
|
||||
|
||||
JUCE_LEAK_DETECTOR (InstantiationCompletionCallback)
|
||||
@ -151,12 +151,14 @@ protected:
|
||||
|
||||
AudioPluginFormat() noexcept;
|
||||
|
||||
using PluginCreationCallback = void (*) (void*, AudioPluginInstance*, const String&);
|
||||
|
||||
/** Implementors must override this function. This is guaranteed to be called on
|
||||
the message thread. You may call the callback on any thread.
|
||||
*/
|
||||
virtual void createPluginInstance (const PluginDescription&, double initialSampleRate,
|
||||
int initialBufferSize, void* userData,
|
||||
void (*callback) (void*, AudioPluginInstance*, const String&)) = 0;
|
||||
PluginCreationCallback) = 0;
|
||||
|
||||
virtual bool requiresUnblockedMessageThreadDuringCreation (const PluginDescription&) const noexcept = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user