Compile under dev-mode, please.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright
2008-05-16 17:08:59 +00:00
parent 76707a409c
commit 1e65b27439

View File

@@ -914,6 +914,9 @@ i16 CenterSlicer(t_pmr_sps *mySps)
for(i=0;i<npoints;i++) for(i=0;i<npoints;i++)
{ {
#if XPMR_DEBUG0 == 1
static i32 tfx=0;
#endif
accum=input[i]; accum=input[i];
lhit=uhit=0; lhit=uhit=0;
@@ -975,7 +978,6 @@ i16 CenterSlicer(t_pmr_sps *mySps)
#if 0 #if 0
mySps->parentChan->pRxLsdCen[i]=center; // trace center ref mySps->parentChan->pRxLsdCen[i]=center; // trace center ref
#else #else
static i32 tfx=0;
if((tfx++/8)&1) // trace min/max levels if((tfx++/8)&1) // trace min/max levels
mySps->parentChan->pRxLsdCen[i]=amax; mySps->parentChan->pRxLsdCen[i]=amax;
else else
@@ -2400,6 +2402,9 @@ t_pmr_chan *createPmrChannel(t_pmr_chan *tChan, i16 numSamples)
*/ */
i16 destroyPmrChannel(t_pmr_chan *pChan) i16 destroyPmrChannel(t_pmr_chan *pChan)
{ {
#if XPMR_DEBUG0 == 1
i16 i;
#endif
t_pmr_sps *pmr_sps, *tmp_sps; t_pmr_sps *pmr_sps, *tmp_sps;
TRACEF(1,("destroyPmrChannel()\n")); TRACEF(1,("destroyPmrChannel()\n"));
@@ -2442,7 +2447,6 @@ i16 destroyPmrChannel(t_pmr_chan *pChan)
free(pChan->rxCtcss->pDebug0); free(pChan->rxCtcss->pDebug0);
free(pChan->rxCtcss->pDebug1); free(pChan->rxCtcss->pDebug1);
i16 i;
for(i=0;i<CTCSS_NUM_CODES;i++) for(i=0;i<CTCSS_NUM_CODES;i++)
{ {
free(pChan->rxCtcss->tdet[i].pDebug0); free(pChan->rxCtcss->tdet[i].pDebug0);
@@ -3220,6 +3224,11 @@ void dedrift(t_pmr_chan *pChan)
} }
else if(pChan->dd.initcnt==0) else if(pChan->dd.initcnt==0)
{ {
const i32 a0 = 26231;
const i32 a1 = 26231;
const i32 b0 = 32768;
const i32 b1 = -32358;
const i32 dg = 128;
void *vptr; void *vptr;
i16 inputindex; i16 inputindex;
i16 indextweak; i16 indextweak;
@@ -3258,11 +3267,6 @@ void dedrift(t_pmr_chan *pChan)
pChan->dd.err = pChan->dd.lead - (pChan->dd.buffersize/2); pChan->dd.err = pChan->dd.lead - (pChan->dd.buffersize/2);
// WinFilter, IIR Fs=50, Fc=0.1 // WinFilter, IIR Fs=50, Fc=0.1
const i32 a0 = 26231;
const i32 a1 = 26231;
const i32 b0 = 32768;
const i32 b1 = -32358;
const i32 dg = 128;
pChan->dd.x1 = pChan->dd.x0; pChan->dd.x1 = pChan->dd.x0;
pChan->dd.y1 = pChan->dd.y0; pChan->dd.y1 = pChan->dd.y0;
pChan->dd.x0 = pChan->dd.err; pChan->dd.x0 = pChan->dd.err;