Fix member names of AudioFrame to match extension
This commit is contained in:
parent
dfe226b933
commit
d8b29efe66
20 changed files with 154 additions and 136 deletions
|
|
@ -64,13 +64,13 @@ void AudioEffectDelayInstance::_process_chunk(const AudioFrame *p_src_frames, Au
|
|||
|
||||
AudioFrame tap1_vol = AudioFrame(tap_1_level_f, tap_1_level_f);
|
||||
|
||||
tap1_vol.l *= CLAMP(1.0 - base->tap_1_pan, 0, 1);
|
||||
tap1_vol.r *= CLAMP(1.0 + base->tap_1_pan, 0, 1);
|
||||
tap1_vol.left *= CLAMP(1.0 - base->tap_1_pan, 0, 1);
|
||||
tap1_vol.right *= CLAMP(1.0 + base->tap_1_pan, 0, 1);
|
||||
|
||||
AudioFrame tap2_vol = AudioFrame(tap_2_level_f, tap_2_level_f);
|
||||
|
||||
tap2_vol.l *= CLAMP(1.0 - base->tap_2_pan, 0, 1);
|
||||
tap2_vol.r *= CLAMP(1.0 + base->tap_2_pan, 0, 1);
|
||||
tap2_vol.left *= CLAMP(1.0 - base->tap_2_pan, 0, 1);
|
||||
tap2_vol.right *= CLAMP(1.0 + base->tap_2_pan, 0, 1);
|
||||
|
||||
// feedback lowpass here
|
||||
float lpf_c = expf(-Math_TAU * base->feedback_lowpass / mix_rate); // 0 .. 10khz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue