summaryrefslogtreecommitdiffstats
path: root/servers/audio/effects/audio_effect_chorus.cpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-01-09 15:01:12 +0100
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-02-13 15:37:09 +0100
commitd8b29efe666202443a019532eb68f560041abeb5 (patch)
treeabe805edd7548423fc40ee9e0b621c82e947a742 /servers/audio/effects/audio_effect_chorus.cpp
parentdfe226b93346c208787728eceecc2c64d81a9553 (diff)
downloadredot-engine-d8b29efe666202443a019532eb68f560041abeb5.tar.gz
Fix member names of `AudioFrame` to match extension
Diffstat (limited to 'servers/audio/effects/audio_effect_chorus.cpp')
-rw-r--r--servers/audio/effects/audio_effect_chorus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/audio/effects/audio_effect_chorus.cpp b/servers/audio/effects/audio_effect_chorus.cpp
index 796abfee02..16f42aea9e 100644
--- a/servers/audio/effects/audio_effect_chorus.cpp
+++ b/servers/audio/effects/audio_effect_chorus.cpp
@@ -96,8 +96,8 @@ void AudioEffectChorusInstance::_process_chunk(const AudioFrame *p_src_frames, A
//vol modifier
AudioFrame vol_modifier = AudioFrame(base->wet, base->wet) * Math::db_to_linear(v.level);
- vol_modifier.l *= CLAMP(1.0 - v.pan, 0, 1);
- vol_modifier.r *= CLAMP(1.0 + v.pan, 0, 1);
+ vol_modifier.left *= CLAMP(1.0 - v.pan, 0, 1);
+ vol_modifier.right *= CLAMP(1.0 + v.pan, 0, 1);
for (int i = 0; i < p_frame_count; i++) {
/** COMPUTE WAVEFORM **/