Merge pull request #29051 from mdahlgrengadd/patch-1

Fix getting max magnitude in AudioEffectSpectrumAnalyzer
This commit is contained in:
Rémi Verschelde 2019-05-24 14:40:48 +02:00 committed by GitHub
commit 13647a3e61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;