-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add getEQEffectRack method to EffectsManager
- Loading branch information
1 parent
e82a1ab
commit 358e074
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,6 +183,12 @@ EffectRackPointer EffectsManager::getEffectRack(int i) { | |
return m_pEffectChainManager->getEffectRack(i); | ||
} | ||
|
||
EffectRackPointer EffectsManager::getEQEffectRack() { | ||
// The EQ Rack is the last one | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rryan
Member
|
||
int eqRackNumber = m_pEffectChainManager->getEffectRacksSize(); | ||
return m_pEffectChainManager->getEffectRack(eqRackNumber - 1); | ||
} | ||
|
||
void EffectsManager::addEqualizer(int channelNumber) { | ||
int rackNum = getEffectChainManager()->getEffectRacksSize(); | ||
EffectRackPointer pRack = getEffectRack(rackNum - 1); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is really dangerous for future versions. As soon as we add a new rack, everyone's configs will break because suddenly their EQ knobs are controlling a second effect rack.