|
| 1 | +// Minimal JUCE plugin to test pluginval builds as a dependency |
| 2 | +#include <juce_audio_processors/juce_audio_processors.h> |
| 3 | + |
| 4 | +class TestProcessor : public juce::AudioProcessor |
| 5 | +{ |
| 6 | +public: |
| 7 | + TestProcessor() |
| 8 | + : AudioProcessor (BusesProperties() |
| 9 | + .withInput ("Input", juce::AudioChannelSet::stereo(), true) |
| 10 | + .withOutput ("Output", juce::AudioChannelSet::stereo(), true)) |
| 11 | + { |
| 12 | + } |
| 13 | + |
| 14 | + const juce::String getName() const override { return "TestPlugin"; } |
| 15 | + bool acceptsMidi() const override { return false; } |
| 16 | + bool producesMidi() const override { return false; } |
| 17 | + double getTailLengthSeconds() const override { return 0.0; } |
| 18 | + |
| 19 | + int getNumPrograms() override { return 1; } |
| 20 | + int getCurrentProgram() override { return 0; } |
| 21 | + void setCurrentProgram (int) override {} |
| 22 | + const juce::String getProgramName (int) override { return {}; } |
| 23 | + void changeProgramName (int, const juce::String&) override {} |
| 24 | + |
| 25 | + void prepareToPlay (double, int) override {} |
| 26 | + void releaseResources() override {} |
| 27 | + void processBlock (juce::AudioBuffer<float>&, juce::MidiBuffer&) override {} |
| 28 | + |
| 29 | + bool hasEditor() const override { return false; } |
| 30 | + juce::AudioProcessorEditor* createEditor() override { return nullptr; } |
| 31 | + |
| 32 | + void getStateInformation (juce::MemoryBlock&) override {} |
| 33 | + void setStateInformation (const void*, int) override {} |
| 34 | +}; |
| 35 | + |
| 36 | +juce::AudioProcessor* JUCE_CALLTYPE createPluginFilter() |
| 37 | +{ |
| 38 | + return new TestProcessor(); |
| 39 | +} |
0 commit comments