diff options
author | Be <be@mixxx.org> | 2018-05-31 06:23:34 -0500 |
---|---|---|
committer | Be <be@mixxx.org> | 2018-05-31 06:23:34 -0500 |
commit | f3b9321e0f3bb830de870b6a76f3dfa1c1ee68ed (patch) | |
tree | cd3da9a17b2eb0008d6fcf22d888c8ac5df9280a /src/effects/effectchain.h | |
parent | fd25553f2905c07165980084914ed648fe6dfa81 (diff) |
rename effect chain "insertion type" to "mix mode"
Diffstat (limited to 'src/effects/effectchain.h')
-rw-r--r-- | src/effects/effectchain.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/effects/effectchain.h b/src/effects/effectchain.h index ad5243f69b..6b074ffa2a 100644 --- a/src/effects/effectchain.h +++ b/src/effects/effectchain.h @@ -57,28 +57,28 @@ class EffectChain : public QObject { double mix() const; void setMix(const double& dMix); - static QString insertionTypeToString(EffectChainInsertionType type) { + static QString mixModeToString(EffectChainMixMode type) { switch (type) { - case EffectChainInsertionType::Insert: - return "INSERT"; - case EffectChainInsertionType::Send: - return "SEND"; + case EffectChainMixMode::DrySlashWet: + return "DRY/WET"; + case EffectChainMixMode::DryPlusWet: + return "DRY+WET"; default: return "UNKNOWN"; } } - static EffectChainInsertionType insertionTypeFromString(const QString& typeStr) { - if (typeStr == "INSERT") { - return EffectChainInsertionType::Insert; - } else if (typeStr == "SEND") { - return EffectChainInsertionType::Send; + static EffectChainMixMode mixModeFromString(const QString& typeStr) { + if (typeStr == "DRY/WET") { + return EffectChainMixMode::DrySlashWet; + } else if (typeStr == "DRY+WET") { + return EffectChainMixMode::DryPlusWet; } else { - return EffectChainInsertionType::Num_Insertion_Types; + return EffectChainMixMode::NumMixModes; } } - EffectChainInsertionType insertionType() const; - void setInsertionType(EffectChainInsertionType type); + EffectChainMixMode mixMode() const; + void setMixMode(EffectChainMixMode type); void addEffect(EffectPointer pEffect); void replaceEffect(unsigned int effectSlotNumber, EffectPointer pEffect); @@ -101,7 +101,7 @@ class EffectChain : public QObject { void descriptionChanged(const QString& name); void enabledChanged(bool enabled); void mixChanged(double v); - void insertionTypeChanged(EffectChainInsertionType type); + void mixModeChanged(EffectChainMixMode type); void channelStatusChanged(const QString& group, bool enabled); private: @@ -118,7 +118,7 @@ class EffectChain : public QObject { QString m_id; QString m_name; QString m_description; - EffectChainInsertionType m_insertionType; + EffectChainMixMode m_mixMode; double m_dMix; QSet<ChannelHandleAndGroup> m_enabledInputChannels; |