提交 09d9bb33 authored 作者: Brian West's avatar Brian West

temp fix for 8k to 48k popping.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11484 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 5422ca86
...@@ -137,9 +137,9 @@ SWITCH_DECLARE(switch_size_t) switch_float_to_short(float *f, short *s, switch_s ...@@ -137,9 +137,9 @@ SWITCH_DECLARE(switch_size_t) switch_float_to_short(float *f, short *s, switch_s
s[i] = (short) (ft - 0.5); s[i] = (short) (ft - 0.5);
} }
if ((float) s[i] > MAXSAMPLE) if ((float) s[i] > MAXSAMPLE)
s[i] = (short) MAXSAMPLE; s[i] = (short) MAXSAMPLE / 2;
if (s[i] < (short) -MAXSAMPLE) if (s[i] < (short) -MAXSAMPLE)
s[i] = (short) -MAXSAMPLE; s[i] = (short) -MAXSAMPLE / 2;
} }
return len; return len;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论