-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPluginProcessor.h
More file actions
38 lines (28 loc) · 1.31 KB
/
PluginProcessor.h
File metadata and controls
38 lines (28 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include <juce_audio_processors/juce_audio_processors.h>
class AudioPluginAudioProcessor : public juce::AudioProcessor
{
public:
AudioPluginAudioProcessor() = default;
~AudioPluginAudioProcessor() override = default;
const juce::String getName() const override { return JucePlugin_Name; }
bool hasEditor() const override { return true; }
juce::AudioProcessorEditor* createEditor() override;
void prepareToPlay(double, int) override {}
void processBlock(juce::AudioBuffer<float>&, juce::MidiBuffer&) override;
void releaseResources() override {}
bool acceptsMidi() const override { return true; }
bool producesMidi() const override { return false; }
double getTailLengthSeconds() const override { return 0.0; }
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 {}
void getStateInformation(juce::MemoryBlock&) override {}
void setStateInformation(const void*, int) override {}
private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(AudioPluginAudioProcessor)
};