feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -37,13 +37,13 @@ void AudioEffectPhaserInstance::process(const AudioFrame *p_src_frames, AudioFra
|
|||
float dmin = base->range_min / (sampling_rate / 2.0);
|
||||
float dmax = base->range_max / (sampling_rate / 2.0);
|
||||
|
||||
float increment = Math_TAU * (base->rate / sampling_rate);
|
||||
float increment = Math::TAU * (base->rate / sampling_rate);
|
||||
|
||||
for (int i = 0; i < p_frame_count; i++) {
|
||||
phase += increment;
|
||||
|
||||
while (phase >= Math_TAU) {
|
||||
phase -= Math_TAU;
|
||||
while (phase >= Math::TAU) {
|
||||
phase -= Math::TAU;
|
||||
}
|
||||
|
||||
float d = dmin + (dmax - dmin) * ((sin(phase) + 1.f) / 2.f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue