blob: 090b683af8c8b5dd37a898a4d1910420a3d32751 (
plain)
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
39
|
#include "engine/enginesidechaincompressor.h"
#include "control/controlpotmeter.h"
#include "control/controlpushbutton.h"
class ConfigValue;
class ControlProxy;
class EngineTalkoverDucking : public QObject, public EngineSideChainCompressor {
Q_OBJECT
public:
enum TalkoverDuckSetting {
OFF = 0,
AUTO,
MANUAL,
};
EngineTalkoverDucking(UserSettingsPointer pConfig, const QString& group);
virtual ~EngineTalkoverDucking();
TalkoverDuckSetting getMode() const {
return static_cast<TalkoverDuckSetting>(int(m_pTalkoverDucking->get()));
}
CSAMPLE getGain(int numFrames);
public slots:
void slotSampleRateChanged(double);
void slotDuckStrengthChanged(double);
void slotDuckModeChanged(double);
private:
UserSettingsPointer m_pConfig;
const QString m_group;
ControlProxy* m_pMasterSampleRate;
ControlPotmeter* m_pDuckStrength;
ControlPushButton* m_pTalkoverDucking;
};
|