Fixes removing controller in controller rack bug
This commit is contained in:
@@ -33,7 +33,8 @@
|
||||
#include "JournallingObject.h"
|
||||
|
||||
class ControllerDialog;
|
||||
class Controller;
|
||||
class Controller;
|
||||
class ControllerConnection;
|
||||
|
||||
typedef QVector<Controller *> ControllerVector;
|
||||
|
||||
@@ -118,6 +119,11 @@ public:
|
||||
static void triggerFrameCounter();
|
||||
static void resetFrameCounter();
|
||||
|
||||
//Accepts a ControllerConnection * as it may be used in the future.
|
||||
void addConnection( ControllerConnection * );
|
||||
void removeConnection( ControllerConnection * );
|
||||
int connectionCount() const;
|
||||
|
||||
|
||||
public slots:
|
||||
virtual ControllerDialog * createDialog( QWidget * _parent );
|
||||
@@ -136,6 +142,7 @@ protected:
|
||||
|
||||
float m_currentValue;
|
||||
bool m_sampleExact;
|
||||
int m_connectionCount;
|
||||
|
||||
QString m_name;
|
||||
ControllerTypes m_type;
|
||||
|
||||
@@ -152,6 +152,11 @@ public:
|
||||
return m_key;
|
||||
}
|
||||
|
||||
EffectChain * getEffectChain() const
|
||||
{
|
||||
return m_parent;
|
||||
}
|
||||
|
||||
virtual EffectControls * controls() = 0;
|
||||
|
||||
static Effect * instantiate( const QString & _plugin_name,
|
||||
@@ -189,6 +194,7 @@ protected:
|
||||
|
||||
|
||||
private:
|
||||
EffectChain * m_parent;
|
||||
void resample( int _i, const sampleFrame * _src_buf,
|
||||
sample_rate_t _src_sr,
|
||||
sampleFrame * _dst_buf, sample_rate_t _dst_sr,
|
||||
|
||||
Reference in New Issue
Block a user