WE Core
Loading...
Searching...
No Matches
ParameterUpdateHandler.h
Go to the documentation of this file.
1/*
2 * File: CoreProcessorEditor.h
3 *
4 * Created: 24/03/2021
5 *
6 * This file is part of WECore.
7 *
8 * WECore is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * WECore is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with WECore. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#pragma once
24
25#include "../JuceLibraryCode/JuceHeader.h"
26#include "CoreAudioProcessor.h"
27
28namespace WECore::JUCEPlugin {
29
31
32 public:
34 virtual ~ParameterUpdateHandler() = default;
35
36 protected:
40 class ParameterUpdateListener : public juce::ChangeListener {
41 public:
43 virtual ~ParameterUpdateListener() = default;
44
45 virtual void changeListenerCallback(juce::ChangeBroadcaster* /*source*/) {
47 }
48
49 private:
51 };
52
54
58 virtual void _onParameterUpdate() = 0;
59
60 };
61}