diff options
author | Be <be@mixxx.org> | 2020-04-26 17:43:01 -0500 |
---|---|---|
committer | Be <be@mixxx.org> | 2020-04-26 17:48:14 -0500 |
commit | 7dc939d38171855eaa031945c87111ed32696c83 (patch) | |
tree | 571c91d96cc3a3097e2e6095263df776cd65ad96 /src/effects/effectchainslot.cpp | |
parent | af933a399b67074d31ef2794fa2af08806311262 (diff) |
EffectChain[Slot, Preset]: remove unused id and description
and rename "name" to "presetName"
Diffstat (limited to 'src/effects/effectchainslot.cpp')
-rw-r--r-- | src/effects/effectchainslot.cpp | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/src/effects/effectchainslot.cpp b/src/effects/effectchainslot.cpp index 378361986e..7b5af43310 100644 --- a/src/effects/effectchainslot.cpp +++ b/src/effects/effectchainslot.cpp @@ -24,9 +24,7 @@ EffectChainSlot::EffectChainSlot(const QString& group, // is 0-indexed. m_pEffectsManager(pEffectsManager), m_group(group), - m_id(id), - m_name(""), - m_description(""), + m_presetName(""), m_mixMode(EffectChainMixMode::DrySlashWet), m_signalProcessingStage(stage), m_pEngineEffectChain(nullptr) { @@ -153,9 +151,10 @@ EffectChainSlot::~EffectChainSlot() { } void EffectChainSlot::addToEngine() { - m_pEngineEffectChain = new EngineEffectChain(m_id, - m_pEffectsManager->registeredInputChannels(), - m_pEffectsManager->registeredOutputChannels()); + m_pEngineEffectChain = new EngineEffectChain( + m_group, + m_pEffectsManager->registeredInputChannels(), + m_pEffectsManager->registeredOutputChannels()); EffectsRequest* pRequest = new EffectsRequest(); pRequest->type = EffectsRequest::ADD_EFFECT_CHAIN; pRequest->AddEffectChain.signalProcessingStage = m_signalProcessingStage; @@ -179,22 +178,13 @@ void EffectChainSlot::removeFromEngine() { m_pEngineEffectChain = nullptr; } -const QString& EffectChainSlot::name() const { - return m_name; +const QString& EffectChainSlot::presetName() const { + return m_presetName; } -void EffectChainSlot::setName(const QString& name) { - m_name = name; - emit updated(); -} - -QString EffectChainSlot::description() const { - return m_description; -} - -void EffectChainSlot::setDescription(const QString& description) { - m_description = description; - emit updated(); +void EffectChainSlot::setPresetName(const QString& name) { + m_presetName = name; + emit nameChanged(name); } void EffectChainSlot::loadEffect(const unsigned int iEffectSlotNumber, @@ -221,10 +211,6 @@ void EffectChainSlot::sendParameterUpdate() { m_pEffectsManager->writeRequest(pRequest); } -QString EffectChainSlot::id() const { - return m_id; -} - QString EffectChainSlot::group() const { return m_group; } |