From 28744c0418749dd8b2d1eb191280c881faad00bb Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 23 Dec 2023 19:38:04 -0800 Subject: Use a separate struct and union member for flanger properties --- core/effects/base.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'core') 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; -- cgit v1.2.3