Download Source/PluginBridgeProcessor.h from RAM2118/pluginbridge: direct link, hf CLI and curl.
- Browser
- Download file 2.33 kB
-
https://huggingface.co/RAM2118/pluginbridge/resolve/6f415b4febff4fc5e512295ab3db0111fa3e8393/Source/PluginBridgeProcessor.h
- Command line
-
hf download hf://RAM2118/pluginbridge@6f415b4febff4fc5e512295ab3db0111fa3e8393/Source/PluginBridgeProcessor.h
-
curl -L -o PluginBridgeProcessor.h https://huggingface.co/RAM2118/pluginbridge/resolve/6f415b4febff4fc5e512295ab3db0111fa3e8393/Source/PluginBridgeProcessor.h
2.33 kB
| class PluginBridgeProcessor : public juce::AudioProcessor | |
| { | |
| public: | |
| PluginBridgeProcessor(); | |
| ~PluginBridgeProcessor() override; | |
| // AudioProcessor interface | |
| void prepareToPlay(double sampleRate, int samplesPerBlock) override; | |
| void releaseResources() override; | |
| void processBlock(juce::AudioBuffer<float>&, juce::MidiBuffer&) override; | |
| // Editor | |
| juce::AudioProcessorEditor* createEditor() override; | |
| bool hasEditor() const override { return true; } | |
| // Plugin identity | |
| const juce::String getName() const override { return "PluginBridge"; } | |
| bool acceptsMidi() const override { return true; } | |
| bool producesMidi() const override { return true; } | |
| double getTailLengthSeconds() const override { return 0.0; } | |
| // Programs (unused) | |
| int getNumPrograms() override { return 1; } | |
| int getCurrentProgram() override { return 0; } | |
| void setCurrentProgram(int) override {} | |
| const juce::String getProgramName(int) override { return {}; } | |
| void changeProgramName(int, const juce::String&) override {} | |
| // State | |
| void getStateInformation(juce::MemoryBlock& destData) override; | |
| void setStateInformation(const void* data, int sizeInBytes) override; | |
| // Public access | |
| bool isMcpServerRunning() const; | |
| int getMcpServerPort() const; | |
| HostedPluginManager& getHostedPluginManager() { return hostManager; } | |
| // Load plugin (called on message thread) | |
| void loadPluginFromFile(const juce::File& file); | |
| // Plugin scanning (owned by Processor — safe lifetime) | |
| void startPluginScan(); | |
| bool isScanComplete() const { return scanComplete; } | |
| bool isScanning() const { return scanning; } | |
| const juce::Array<juce::PluginDescription>& getScannedPlugins() const { return scannedPlugins; } | |
| private: | |
| HostedPluginManager hostManager; | |
| McpServer mcpServer; | |
| static constexpr int kDefaultMcpPort = 16620; | |
| // Plugin scan state (lives in Processor — safe) | |
| juce::Array<juce::PluginDescription> scannedPlugins; | |
| std::atomic<bool> scanComplete{false}; | |
| std::atomic<bool> scanning{false}; | |
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeProcessor) | |
| }; | |