Fixes removing controller in controller rack bug

This commit is contained in:
Wong Cho Ching
2014-01-30 16:09:03 +08:00
parent 0ff636b363
commit 600232967a
9 changed files with 84 additions and 7 deletions

View File

@@ -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;

View File

@@ -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,