1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

PluginHostType: Automatically set jucePlugInClientCurrentWrapperType during createPluginFilterOfType

This commit is contained in:
reuk 2022-12-12 12:59:48 +00:00
parent 84d4c8794a
commit 403ba3007f
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
9 changed files with 3 additions and 30 deletions

View file

@ -721,7 +721,7 @@ public:
static std::unique_ptr<AudioProcessor> createProcessorInstance()
{
std::unique_ptr<AudioProcessor> result { createPluginFilterOfType (AudioProcessor::wrapperType_LV2) };
auto result = rawToUniquePtr (createPluginFilterOfType (AudioProcessor::wrapperType_LV2));
#if defined (JucePlugin_PreferredChannelConfigurations)
constexpr short channelConfigurations[][2] { JucePlugin_PreferredChannelConfigurations };
@ -1356,8 +1356,6 @@ private:
//==============================================================================
LV2_SYMBOL_EXPORT const LV2_Descriptor* lv2_descriptor (uint32_t index)
{
PluginHostType::jucePlugInClientCurrentWrapperType = AudioProcessor::wrapperType_LV2;
if (index != 0)
return nullptr;