aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-23 19:38:04 -0800
committerChris Robinson <[email protected]>2023-12-23 22:08:56 -0800
commit28744c0418749dd8b2d1eb191280c881faad00bb (patch)
tree5c99107332cd89e78badec931ee6fa6d22bead62 /core
parentcfb6bdfabfdf70ce5bcb650d356c3a9c1db3df0c (diff)
Use a separate struct and union member for flanger properties
Diffstat (limited to 'core')
-rw-r--r--core/effects/base.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/effects/base.h b/core/effects/base.h
index 3852731a..672d3f04 100644
--- a/core/effects/base.h
+++ b/core/effects/base.h
@@ -101,6 +101,15 @@ struct ChorusProps {
float Delay;
};
+struct FlangerProps {
+ ChorusWaveform Waveform;
+ int Phase;
+ float Rate;
+ float Depth;
+ float Feedback;
+ float Delay;
+};
+
struct CompressorProps {
bool OnOff;
};
@@ -174,7 +183,8 @@ struct ConvolutionProps {
union EffectProps {
ReverbProps Reverb;
AutowahProps Autowah;
- ChorusProps Chorus; /* Also Flanger */
+ ChorusProps Chorus;
+ FlangerProps Flanger;
CompressorProps Compressor;
DistortionProps Distortion;
EchoProps Echo;