diff options
author | Martin Dahlgren <mdahlgrengadd@users.noreply.github.com> | 2019-05-20 23:51:01 +0200 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-05-24 12:40:04 +0200 |
commit | 47f628a013e501b9eefb7ed8d5b23862bc5083ea (patch) | |
tree | cd00531070e0f3452bd5255289d3fa3ad84400ec /servers/audio/effects | |
parent | eaff86f8bdcafa9fcd3a1d14ce916c06490a4c2e (diff) |
Fix getting max magnitude in AudioEffectSpectrumAnalyzer
Diffstat (limited to 'servers/audio/effects')
-rw-r--r-- | servers/audio/effects/audio_effect_spectrum_analyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/audio/effects/audio_effect_spectrum_analyzer.cpp b/servers/audio/effects/audio_effect_spectrum_analyzer.cpp index 05cba416be..8e15e9288f 100644 --- a/servers/audio/effects/audio_effect_spectrum_analyzer.cpp +++ b/servers/audio/effects/audio_effect_spectrum_analyzer.cpp @@ -170,7 +170,7 @@ Vector2 AudioEffectSpectrumAnalyzerInstance::get_magnitude_for_frequency_range(f for (int i = begin_pos; i <= end_pos; i++) { max.x = MAX(max.x, r[i].l); - max.y = MAX(max.x, r[i].r); + max.y = MAX(max.y, r[i].r); } return max; |