summaryrefslogtreecommitdiffstats
path: root/src/effects/effectchain.h
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2014-02-19 14:22:05 -0500
committerRJ Ryan <rryan@mixxx.org>2014-02-19 14:22:05 -0500
commit210744b26daed3c3d29d3f88e6597041e01cf717 (patch)
tree3c3c77c154b2d3251d4f26a5600e36eae83cf554 /src/effects/effectchain.h
parent28b87241012c8db3a64e530bc4e8d6eb090d2e6d (diff)
Allow controlling of EffectChain insertion type via chain slot control API.
Diffstat (limited to 'src/effects/effectchain.h')
-rw-r--r--src/effects/effectchain.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/effects/effectchain.h b/src/effects/effectchain.h
index 2ce3587d85..5a78dcbca3 100644
--- a/src/effects/effectchain.h
+++ b/src/effects/effectchain.h
@@ -54,9 +54,10 @@ class EffectChain : public QObject {
void setMix(const double& dMix);
enum InsertionType {
- UNKNOWN_INSERTION_TYPE = 0,
- INSERT = 1,
- SEND = 2
+ INSERT = 0,
+ SEND,
+ // The number of insertion types. Also used to represent "unknown".
+ NUM_INSERTION_TYPES
};
static QString insertionTypeToString(InsertionType type) {
switch (type) {
@@ -74,11 +75,10 @@ class EffectChain : public QObject {
} else if (typeStr == "SEND") {
return SEND;
} else {
- return UNKNOWN_INSERTION_TYPE;
+ return NUM_INSERTION_TYPES;
}
}
-
InsertionType insertionType() const;
void setInsertionType(InsertionType type);
@@ -103,6 +103,7 @@ class EffectChain : public QObject {
void enabledChanged(bool enabled);
void mixChanged(double v);
void parameterChanged(double v);
+ void insertionTypeChanged(InsertionType type);
void groupStatusChanged(const QString& group, bool enabled);
private: