-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Effect Blacklisting #1674
Merged
Merged
Effect Blacklisting #1674
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
6d61872
Added hidden visibility mode for LV2 effects
kshitij98 9caa1f7
Blacklisted hidden effects from menu
kshitij98 02cf7dd
effectsmanager.cpp: Added visibility check
kshitij98 566db03
Integrated config and fixed blacklisting effects
kshitij98 036f0e2
Updated Effect Blacklisting Preferences
kshitij98 92acfe0
Shifted visibility logic to EffectsManager
kshitij98 94ff53a
pParent as the first argument convention
kshitij98 260bfcd
Added "Type" column in Available Effects List
kshitij98 72b1f91
Added support for Qt5 (setResizeMode/setSectionResizeMode)
kshitij98 eb992a3
Coding standards conformance
kshitij98 8caa6ab
Removed visibility settings from EffectsBackend
kshitij98 0aa3cf8
Merge branch 'lv2_support2' into effect_blacklisting
kshitij98 cd39efb
Renamed "Native" to "Built-in"
kshitij98 4e3468c
Merge branch 'effect_blacklisting' of https://github.com/kshitij98/mi…
kshitij98 b4efad1
Added BackendType enum
kshitij98 e250f10
Changed "BackendType" to "EffectBackendType"
kshitij98 5bbe893
Updated blacklisting comment
kshitij98 ff90165
Removed backendName QString from EffectManifest
kshitij98 b87b2bb
Created Backend specific visibility group
kshitij98 99bb100
Updated TestEffectBackend
kshitij98 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
2 changes: 1 addition & 1 deletion
2
src/effects/native/autopaneffect.cpp → src/effects/builtin/autopaneffect.cpp
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "effects/native/autopaneffect.h" | ||
#include "effects/builtin/autopaneffect.h" | ||
|
||
#include <QtDebug> | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
src/effects/native/bessel4lvmixeqeffect.cpp → src/effects/builtin/bessel4lvmixeqeffect.cpp
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 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
4 changes: 2 additions & 2 deletions
4
src/effects/native/bessel8lvmixeqeffect.cpp → src/effects/builtin/bessel8lvmixeqeffect.cpp
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
2 changes: 1 addition & 1 deletion
2
src/effects/native/bessel8lvmixeqeffect.h → src/effects/builtin/bessel8lvmixeqeffect.h
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
4 changes: 2 additions & 2 deletions
4
...effects/native/biquadfullkilleqeffect.cpp → ...ffects/builtin/biquadfullkilleqeffect.cpp
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 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
2 changes: 1 addition & 1 deletion
2
src/effects/native/bitcrushereffect.cpp → src/effects/builtin/bitcrushereffect.cpp
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
|
||
#include <QtDebug> | ||
|
||
#include "effects/builtin/builtinbackend.h" | ||
#include "effects/builtin/flangereffect.h" | ||
#include "effects/builtin/bitcrushereffect.h" | ||
#include "effects/builtin/balanceeffect.h" | ||
#include "effects/builtin/linkwitzriley8eqeffect.h" | ||
#include "effects/builtin/bessel8lvmixeqeffect.h" | ||
#include "effects/builtin/bessel4lvmixeqeffect.h" | ||
#include "effects/builtin/threebandbiquadeqeffect.h" | ||
#include "effects/builtin/biquadfullkilleqeffect.h" | ||
#include "effects/builtin/graphiceqeffect.h" | ||
#include "effects/builtin/parametriceqeffect.h" | ||
#include "effects/builtin/filtereffect.h" | ||
#include "effects/builtin/moogladder4filtereffect.h" | ||
#ifndef __MACAPPSTORE__ | ||
#include "effects/builtin/reverbeffect.h" | ||
#endif | ||
#include "effects/builtin/echoeffect.h" | ||
#include "effects/builtin/autopaneffect.h" | ||
#include "effects/builtin/phasereffect.h" | ||
#include "effects/builtin/loudnesscontoureffect.h" | ||
#include "effects/builtin/metronomeeffect.h" | ||
#include "effects/builtin/tremoloeffect.h" | ||
|
||
BuiltInBackend::BuiltInBackend(QObject* pParent) | ||
: EffectsBackend(pParent, EffectBackendType::BuiltIn) { | ||
// Keep this list in a reasonable order | ||
// Mixing EQs | ||
registerEffect<Bessel4LVMixEQEffect>(); | ||
registerEffect<Bessel8LVMixEQEffect>(); | ||
registerEffect<LinkwitzRiley8EQEffect>(); | ||
registerEffect<ThreeBandBiquadEQEffect>(); | ||
registerEffect<BiquadFullKillEQEffect>(); | ||
// Compensations EQs | ||
registerEffect<GraphicEQEffect>(); | ||
registerEffect<ParametricEQEffect>(); | ||
registerEffect<LoudnessContourEffect>(); | ||
// Fading Effects | ||
registerEffect<FilterEffect>(); | ||
registerEffect<MoogLadder4FilterEffect>(); | ||
registerEffect<BitCrusherEffect>(); | ||
registerEffect<BalanceEffect>(); | ||
// Fancy effects | ||
registerEffect<FlangerEffect>(); | ||
registerEffect<EchoEffect>(); | ||
registerEffect<AutoPanEffect>(); | ||
#ifndef __MACAPPSTORE__ | ||
registerEffect<ReverbEffect>(); | ||
#endif | ||
registerEffect<PhaserEffect>(); | ||
registerEffect<MetronomeEffect>(); | ||
registerEffect<TremoloEffect>(); | ||
} | ||
|
||
BuiltInBackend::~BuiltInBackend() { | ||
//qDebug() << debugString() << "destroyed"; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef BUILTINBACKEND_H | ||
#define BUILTINBACKEND_H | ||
|
||
#include "effects/defs.h" | ||
#include "effects/effectsbackend.h" | ||
|
||
class BuiltInBackend : public EffectsBackend { | ||
Q_OBJECT | ||
public: | ||
BuiltInBackend(QObject* pParent); | ||
virtual ~BuiltInBackend(); | ||
|
||
private: | ||
QString debugString() const { | ||
return "BuiltInBackend"; | ||
} | ||
}; | ||
|
||
#endif /* BUILTINBACKEND_H */ |
2 changes: 1 addition & 1 deletion
2
src/effects/native/echoeffect.cpp → src/effects/builtin/echoeffect.cpp
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "effects/native/echoeffect.h" | ||
#include "effects/builtin/echoeffect.h" | ||
|
||
#include <QtDebug> | ||
|
||
|
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
src/effects/native/filtereffect.cpp → src/effects/builtin/filtereffect.cpp
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/effects/native/flangereffect.cpp → src/effects/builtin/flangereffect.cpp
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "effects/native/flangereffect.h" | ||
#include "effects/builtin/flangereffect.h" | ||
|
||
#include <QtDebug> | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/effects/native/graphiceqeffect.cpp → src/effects/builtin/graphiceqeffect.cpp
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...effects/native/linkwitzriley8eqeffect.cpp → ...ffects/builtin/linkwitzriley8eqeffect.cpp
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/effects/native/loudnesscontoureffect.cpp → ...effects/builtin/loudnesscontoureffect.cpp
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ffects/native/moogladder4filtereffect.cpp → ...fects/builtin/moogladder4filtereffect.cpp
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/effects/native/parametriceqeffect.cpp → src/effects/builtin/parametriceqeffect.cpp
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/effects/native/phasereffect.cpp → src/effects/builtin/phasereffect.cpp
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "effects/native/phasereffect.h" | ||
#include "effects/builtin/phasereffect.h" | ||
|
||
#include <QDebug> | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/effects/native/reverbeffect.cpp → src/effects/builtin/reverbeffect.cpp
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "effects/native/reverbeffect.h" | ||
#include "effects/builtin/reverbeffect.h" | ||
|
||
#include <QtDebug> | ||
|
||
|
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ffects/native/threebandbiquadeqeffect.cpp → ...fects/builtin/threebandbiquadeqeffect.cpp
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/effects/native/tremoloeffect.cpp → src/effects/builtin/tremoloeffect.cpp
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
File renamed without changes.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this
Unknown
value? Can we remove it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added
Unknown
to handle the case of a manifest not having a backend rather than handling it while setting the effectType indlgprefeffects
. I think we should keep it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When would an EffectManifest ever not have a backend?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EffectManifest would always have a backend currently. But because the backendName is not set in its constructor but through
setBackendName()
function, I think we should set it toUnknown
for the time being rather than setting it to the first value (Built-in
) in the EffectBackendType enum.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I thought of a use case for this Unknown value. When we parse an XML file specifying an effect chain preset and use the
EffectManifest::backendTypeFromString
function, we can use the Unknown return value to determine that the effect cannot be loaded.