pluginHost.h (699B)
1 #pragma once 2 3 #include "JuceHeader.h" 4 5 class CommandLinePluginHost final : public AudioProcessorPlayer 6 { 7 public: 8 CommandLinePluginHost(); 9 10 CommandLinePluginHost(const CommandLinePluginHost&) = delete; 11 CommandLinePluginHost(CommandLinePluginHost&&) = delete; 12 13 ~CommandLinePluginHost() override; 14 15 CommandLinePluginHost& operator=(const CommandLinePluginHost&) = delete; 16 CommandLinePluginHost& operator=(CommandLinePluginHost&&) = delete; 17 18 bool loadPlugin(const PluginDescription& _plugin); 19 const AudioPluginFormatManager& getFormatManager() { return m_formatManager; } 20 21 private: 22 AudioPluginFormatManager m_formatManager; 23 std::unique_ptr<AudioPluginInstance> m_pluginInstance; 24 };