From be3acc97689813bf1977b72ddc6ccf2552e7891e Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 14 Apr 2016 11:01:42 +0100 Subject: [PATCH] Tidied up an out of date method in LADSPAPluginFormat --- .../format_types/juce_LADSPAPluginFormat.cpp | 2 +- .../format_types/juce_LADSPAPluginFormat.h | 10 ++++------ .../format_types/juce_VST3PluginFormat.h | 11 +---------- 3 files changed, 6 insertions(+), 17 deletions(-) diff --git a/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.cpp index 47eb9baf78..eb58967be2 100644 --- a/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.cpp @@ -676,7 +676,7 @@ bool LADSPAPluginFormat::doesPluginStillExist (const PluginDescription& desc) return File::createFileWithoutCheckingPath (desc.fileOrIdentifier).exists(); } -StringArray LADSPAPluginFormat::searchPathsForPlugins (const FileSearchPath& directoriesToSearch, const bool recursive) +StringArray LADSPAPluginFormat::searchPathsForPlugins (const FileSearchPath& directoriesToSearch, const bool recursive, bool) { StringArray results; diff --git a/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.h b/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.h index f1a1b15564..4a8a3ce9fa 100644 --- a/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.h +++ b/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.h @@ -31,7 +31,6 @@ class JUCE_API LADSPAPluginFormat : public AudioPluginFormat { public: - //============================================================================== LADSPAPluginFormat(); ~LADSPAPluginFormat(); @@ -41,18 +40,17 @@ public: bool fileMightContainThisPluginType (const String& fileOrIdentifier) override; String getNameOfPluginFromIdentifier (const String& fileOrIdentifier) override; bool pluginNeedsRescanning (const PluginDescription&) override; - StringArray searchPathsForPlugins (const FileSearchPath&, bool recursive) override; + StringArray searchPathsForPlugins (const FileSearchPath&, bool recursive, bool) override; bool doesPluginStillExist (const PluginDescription&) override; FileSearchPath getDefaultLocationsToSearch() override; bool canScanForPlugins() const override { return true; } private: //============================================================================== - void createPluginInstance (const PluginDescription& description, - double initialSampleRate, - int initialBufferSize, - void* userData, + void createPluginInstance (const PluginDescription&, double initialSampleRate, + int initialBufferSize, void* userData, void (*callback) (void*, AudioPluginInstance*, const String&)) override; + bool requiresUnblockedMessageThreadDuringCreation (const PluginDescription&) const noexcept override; private: diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.h b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.h index 32744cf132..f77eb57660 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.h +++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.h @@ -40,23 +40,14 @@ public: ~VST3PluginFormat(); //============================================================================== - /** @internal */ String getName() const override { return "VST3"; } - /** @internal */ - void findAllTypesForFile (OwnedArray& results, const String& fileOrIdentifier) override; - /** @internal */ + void findAllTypesForFile (OwnedArray&, const String& fileOrIdentifier) override; bool fileMightContainThisPluginType (const String& fileOrIdentifier) override; - /** @internal */ String getNameOfPluginFromIdentifier (const String& fileOrIdentifier) override; - /** @internal */ bool pluginNeedsRescanning (const PluginDescription&) override; - /** @internal */ StringArray searchPathsForPlugins (const FileSearchPath&, bool recursive, bool) override; - /** @internal */ bool doesPluginStillExist (const PluginDescription&) override; - /** @internal */ FileSearchPath getDefaultLocationsToSearch() override; - /** @internal */ bool canScanForPlugins() const override { return true; } private: