mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-18 10:11:56 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
*---------------------------------------------------------------*/
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user