提交 3cd120a0 authored 作者: Jeff Lenk's avatar Jeff Lenk

fix warning

上级 180e3d4a
...@@ -299,7 +299,7 @@ SWITCH_DECLARE(void) switch_change_sln_volume_granular(int16_t *data, uint32_t s ...@@ -299,7 +299,7 @@ SWITCH_DECLARE(void) switch_change_sln_volume_granular(int16_t *data, uint32_t s
int16_t *fp = data; int16_t *fp = data;
for (x = 0; x < samples; x++) { for (x = 0; x < samples; x++) {
tmp = (int32_t) fp[x] * newrate; tmp = (int32_t) (fp[x] * newrate);
switch_normalize_to_16bit(tmp); switch_normalize_to_16bit(tmp);
fp[x] = (int16_t) tmp; fp[x] = (int16_t) tmp;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论