diff options
author | Matthew Fredrickson <creslin@digium.com> | 2006-02-10 23:37:27 +0000 |
---|---|---|
committer | Matthew Fredrickson <creslin@digium.com> | 2006-02-10 23:37:27 +0000 |
commit | 4f803dfda0ea9b498b887f8ba28fd5b1ba9dbc04 (patch) | |
tree | 57c12cf4eda0931613bfedd345484014eeabeb2f /codecs/lpc10/bsynz.c | |
parent | c344781c4bba6d7cb00aeaeb7348ab6228f2f771 (diff) |
Lots of little fixes for doing MSVC compiling codecs in windows (#6022)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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]; |