You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.4KB

  1. diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp
  2. index d0c1884db..c87b97d49 100644
  3. --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp
  4. +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp
  5. @@ -210,9 +210,9 @@ struct SharedMessageThread : public Thread
  6. void run() override
  7. {
  8. initialiseJuce_GUI();
  9. - initialised = true;
  10. MessageManager::getInstance()->setCurrentThreadAsMessageThread();
  11. + initialised = true;
  12. while ((! threadShouldExit()) && MessageManager::getInstance()->runDispatchLoopUntil (250))
  13. {}
  14. @@ -300,9 +300,6 @@ public:
  15. // You must at least have some channels
  16. jassert (processor->isMidiEffect() || (maxNumInChannels > 0 || maxNumOutChannels > 0));
  17. - if (processor->isMidiEffect())
  18. - maxNumInChannels = maxNumOutChannels = 2;
  19. -
  20. #ifdef JucePlugin_PreferredChannelConfigurations
  21. processor->setPlayConfigDetails (maxNumInChannels, maxNumOutChannels, 44100.0, 1024);
  22. #endif
  23. @@ -1827,7 +1824,7 @@ private:
  24. pointer_sized_int handleGetPlugInName (VstOpCodeArguments args)
  25. {
  26. - String (JucePlugin_Name).copyToUTF8 ((char*) args.ptr, 64 + 1);
  27. + String (processor->getName()).copyToUTF8 ((char*) args.ptr, 64 + 1);
  28. return 1;
  29. }