switch msvc build to new ilbc libs

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12101 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2009-02-17 17:10:40 +00:00
parent a3ae344f3d
commit cd1ecb28fa
10 changed files with 923 additions and 666 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ void doThePLC(float *PLCresidual, /* (o) concealed residual */
float gain;
float maxcc;
float use_gain;
float gain_comp, maxcc_comp, per, max_per;
float gain_comp, maxcc_comp, per, max_per = 0;
int i;
int pick;
int use_lag;
+11
View File
@@ -40,6 +40,17 @@
#include "hpOutput.h"
#include "syntFilter.h"
#if defined(WIN32) || defined(_WIN32)
__inline double rint(double dbl)
{
_asm
{
fld dbl
frndint
}
}
#endif
/*----------------------------------------------------------------*
* Initiation of decoder instance.
*---------------------------------------------------------------*/
+1 -1
View File
@@ -158,7 +158,7 @@ static int ilbc_encode_frame(ilbc_encode_state_t *iLBCenc_inst, /* (i/o) the
en2 = 0;
index = (start - 1)*SUBL+diff;
for (i = 0; i < iLBCenc_inst->state_short_len; i++)
en2 += residual[index + i]*residual[index + i];
en2 = (int)(en2 + residual[index + i]*residual[index + i]);
if (en1 > en2)
{