You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Fix getting max magnitude in AudioEffectSpectrumAnalyzer
This commit is contained in:
committed by
Rémi Verschelde
parent
eaff86f8bd
commit
47f628a013
@@ -170,7 +170,7 @@ Vector2 AudioEffectSpectrumAnalyzerInstance::get_magnitude_for_frequency_range(f
|
|||||||
|
|
||||||
for (int i = begin_pos; i <= end_pos; i++) {
|
for (int i = begin_pos; i <= end_pos; i++) {
|
||||||
max.x = MAX(max.x, r[i].l);
|
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;
|
return max;
|
||||||
|
|||||||
Reference in New Issue
Block a user