提交 b3312a76 编写于 作者: J Jim

Merge pull request #300 from fryshorts/audio-perf

libobs: Replace fmaxf with inline comparison.
...@@ -655,7 +655,7 @@ static void calc_volume_levels(struct obs_source *source, float *array, ...@@ -655,7 +655,7 @@ static void calc_volume_levels(struct obs_source *source, float *array,
float val_pow2 = val * val; float val_pow2 = val * val;
sum_val += val_pow2; sum_val += val_pow2;
max_val = fmaxf(max_val, val_pow2); max_val = (max_val > val_pow2) ? max_val : val_pow2;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册