Sprint 2: Update PluginBridgeProcessor.h \u2014 add HostedPluginManager member
Browse files
Source/PluginBridgeProcessor.h
CHANGED
|
@@ -3,6 +3,7 @@
|
|
| 3 |
#include <juce_audio_processors/juce_audio_processors.h>
|
| 4 |
#include <juce_dsp/juce_dsp.h>
|
| 5 |
#include "McpServer.h"
|
|
|
|
| 6 |
|
| 7 |
class PluginBridgeProcessor : public juce::AudioProcessor
|
| 8 |
{
|
|
@@ -36,11 +37,16 @@ public:
|
|
| 36 |
void getStateInformation(juce::MemoryBlock& destData) override;
|
| 37 |
void setStateInformation(const void* data, int sizeInBytes) override;
|
| 38 |
|
| 39 |
-
//
|
| 40 |
bool isMcpServerRunning() const;
|
| 41 |
int getMcpServerPort() const;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
private:
|
|
|
|
| 44 |
McpServer mcpServer;
|
| 45 |
static constexpr int kDefaultMcpPort = 16620;
|
| 46 |
|
|
|
|
| 3 |
#include <juce_audio_processors/juce_audio_processors.h>
|
| 4 |
#include <juce_dsp/juce_dsp.h>
|
| 5 |
#include "McpServer.h"
|
| 6 |
+
#include "HostedPluginManager.h"
|
| 7 |
|
| 8 |
class PluginBridgeProcessor : public juce::AudioProcessor
|
| 9 |
{
|
|
|
|
| 37 |
void getStateInformation(juce::MemoryBlock& destData) override;
|
| 38 |
void setStateInformation(const void* data, int sizeInBytes) override;
|
| 39 |
|
| 40 |
+
// Public access for Editor and McpServer
|
| 41 |
bool isMcpServerRunning() const;
|
| 42 |
int getMcpServerPort() const;
|
| 43 |
+
HostedPluginManager& getHostedPluginManager() { return hostManager; }
|
| 44 |
+
|
| 45 |
+
// Load plugin from GUI (called on message thread)
|
| 46 |
+
void loadPluginFromFile(const juce::File& file);
|
| 47 |
|
| 48 |
private:
|
| 49 |
+
HostedPluginManager hostManager;
|
| 50 |
McpServer mcpServer;
|
| 51 |
static constexpr int kDefaultMcpPort = 16620;
|
| 52 |
|