mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Remove ABS in favor of Math::abs
This commit is contained in:
parent
3d9b05ad4a
commit
10f6c01b9c
68 changed files with 142 additions and 146 deletions
|
|
@ -47,7 +47,7 @@ void AudioEffectHardLimiterInstance::process(const AudioFrame *p_src_frames, Aud
|
|||
sample_left *= pre_gain;
|
||||
sample_right *= pre_gain;
|
||||
|
||||
float largest_sample = MAX(ABS(sample_left), ABS(sample_right));
|
||||
float largest_sample = MAX(Math::abs(sample_left), Math::abs(sample_right));
|
||||
|
||||
release_factor = MAX(0.0, release_factor - 1.0 / sample_rate);
|
||||
release_factor = MIN(release_factor, release);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue