1 #ifndef __AMUSE_EFFECTREVERB_HPP__ 2 #define __AMUSE_EFFECTREVERB_HPP__ 4 #include "EffectBase.hpp" 5 #include "amuse/Common.hpp" 14 int32_t x0_inPoint = 0;
15 int32_t x4_outPoint = 0;
16 int32_t x8_length = 0;
17 std::unique_ptr<float[]> xc_inputs;
18 float x10_lastInput = 0.f;
20 void allocate(int32_t delay);
21 void setdelay(int32_t delay);
46 float damping,
float preDelay);
51 void setColoration(
float coloration)
53 x140_x1c8_coloration = clamp(0.f, coloration, 1.f);
57 void setMix(
float mix)
59 x144_x1cc_mix = clamp(0.f, mix, 1.f);
63 void setTime(
float time)
65 x148_x1d0_time = clamp(0.01f, time, 10.f);
69 void setDamping(
float damping)
71 x14c_x1d4_damping = clamp(0.f, damping, 1.f);
75 void setPreDelay(
float preDelay)
77 x150_x1d8_preDelay = clamp(0.f, preDelay, 0.1f);
90 float damping,
float preDelay,
float crosstalk);
95 void setCrosstalk(
float crosstalk)
97 x1dc_crosstalk = clamp(0.f, crosstalk, 1.f);
103 template <
typename T>
108 float xf0_allPassCoef = 0.f;
109 float xf4_combCoef[8][2] = {};
110 float x10c_lpLastout[8] = {};
111 float x118_level = 0.f;
112 float x11c_damping = 0.f;
113 int32_t x120_preDelayTime = 0;
114 std::unique_ptr<float[]> x124_preDelayLine[8];
115 float* x130_preDelayPtr[8] = {};
121 float damping,
float preDelay,
double sampleRate);
122 void applyEffect(T* audio,
size_t frameCount,
const ChannelMap& chanMap);
126 template <
typename T>
132 float x168_allPassCoef = 0.f;
133 float x16c_combCoef[8][3] = {};
134 float x190_lpLastout[8] = {};
135 float x19c_level = 0.f;
136 float x1a0_damping = 0.f;
137 int32_t x1a4_preDelayTime = 0;
138 std::unique_ptr<float[]> x1ac_preDelayLine[8];
139 float* x1b8_preDelayPtr[8] = {};
140 float x1a8_internalCrosstalk;
144 void _handleReverb(T* audio,
int chanIdx,
int chanCount,
int sampleCount);
145 void _doCrosstalk(T* audio,
float wet,
float dry,
int chanCount,
int sampleCount);
148 float damping,
float preDelay,
float crosstalk,
double sampleRate);
149 void applyEffect(T* audio,
size_t frameCount,
const ChannelMap& chanMap);
154 #endif // __AMUSE_EFFECTREVERB_HPP__
float x140_x1c8_coloration