diff options
author | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-10 23:37:27 +0000 |
---|---|---|
committer | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-10 23:37:27 +0000 |
commit | 00dd1704f15d77f4b5ca3694493812b8e49a8696 (patch) | |
tree | 57c12cf4eda0931613bfedd345484014eeabeb2f /codecs/lpc10/bsynz.c | |
parent | 864716935ab085c63a1d6f1bef5beae1dbc76d97 (diff) |
Lots of little fixes for doing MSVC compiling codecs in windows (#6022)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9450 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/lpc10/bsynz.c')
-rw-r--r-- | codecs/lpc10/bsynz.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/codecs/lpc10/bsynz.c b/codecs/lpc10/bsynz.c index 5971a1a22..89e978de6 100644 --- a/codecs/lpc10/bsynz.c +++ b/codecs/lpc10/bsynz.c @@ -372,7 +372,7 @@ e */ exc[px] -= pulse; /* Load voiced excitation */ } else { - sscale = sqrt((real) (*ip)) / 6.928f; + sscale = (real)sqrt((real) (*ip)) / 6.928f; i__1 = *ip; for (i__ = 1; i__ <= i__1; ++i__) { exc[contrl_1.order + i__ - 1] = 0.f; @@ -438,7 +438,7 @@ e */ /* Apply gain to match RMS */ r__1 = *rms * *rms; ssq = r__1 * *ip; - gain = sqrt(ssq / xssq); + gain = (real)sqrt(ssq / xssq); i__1 = *ip; for (i__ = 1; i__ <= i__1; ++i__) { sout[i__] = gain * exc2[contrl_1.order + i__ - 1]; |