| 7 | //A helper base class, reducing a lot of the AudioProcessor boiler plate: |
| 8 | |
| 9 | struct ProcessorBase : juce::AudioProcessor { |
| 10 | ProcessorBase(); |
| 11 | explicit ProcessorBase(const BusesProperties& ioLayouts); |
| 12 | |
| 13 | void releaseResources() override; |
| 14 | |
| 15 | bool isBusesLayoutSupported(const BusesLayout& layouts) const override; |
| 16 | |
| 17 | using AudioProcessor::prepareToPlay; |
| 18 | |
| 19 | using AudioProcessor::processBlock; |
| 20 | |
| 21 | juce::AudioProcessorEditor* createEditor() override; |
| 22 | bool hasEditor() const override { return true; } |
| 23 | |
| 24 | const juce::String getName() const override; |
| 25 | |
| 26 | bool acceptsMidi() const override; |
| 27 | bool producesMidi() const override; |
| 28 | bool isMidiEffect() const override; |
| 29 | double getTailLengthSeconds() const override; |
| 30 | |
| 31 | int getNumPrograms() override; |
| 32 | int getCurrentProgram() override; |
| 33 | void setCurrentProgram(int index) override; |
| 34 | const juce::String getProgramName(int index) override; |
| 35 | void changeProgramName(int index, const juce::String& newName) override; |
| 36 | |
| 37 | static BusesProperties getDefaultProperties(); |
| 38 | }; |
| 39 | } // namespace PluginHelpers |
nothing calls this directly
no outgoing calls
no test coverage detected