mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-18 08:56:42 -05:00
Replaced floor with rint
This commit is contained in:
parent
13892f6d17
commit
e4ccce7058
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ static void snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area,
|
||||||
goto norm_float;
|
goto norm_float;
|
||||||
norm_float_0:
|
norm_float_0:
|
||||||
norm_float:
|
norm_float:
|
||||||
sum.as_float = floor(sum.as_float + 0.5);
|
sum.as_float = rint(sum.as_float);
|
||||||
if (sum.as_float > (int64_t)0x7fffffff)
|
if (sum.as_float > (int64_t)0x7fffffff)
|
||||||
sample = 0x7fffffff; /* maximum positive value */
|
sample = 0x7fffffff; /* maximum positive value */
|
||||||
else if (sum.as_float < (int64_t)-0x80000000)
|
else if (sum.as_float < (int64_t)-0x80000000)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue