Browse Source

cmDspKr.c : Added call to cmNlmsEcWrite() and set new default values for the

fixed delay time and impulse response length.
master
kevin 9 years ago
parent
commit
66660cb6de
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      dsp/cmDspKr.c

+ 4
- 2
dsp/cmDspKr.c View File

3790
   p->r = cmNlmsEcAlloc(ctx->cmProcCtx, NULL, 0,0,0 );
3790
   p->r = cmNlmsEcAlloc(ctx->cmProcCtx, NULL, 0,0,0 );
3791
   
3791
   
3792
   cmDspSetDefaultDouble( ctx, &p->inst, kMuEcId,        0, 0.1);
3792
   cmDspSetDefaultDouble( ctx, &p->inst, kMuEcId,        0, 0.1);
3793
-  cmDspSetDefaultUInt(   ctx, &p->inst, kImpRespN_EcId, 0, 256);
3794
-  cmDspSetDefaultUInt(   ctx, &p->inst, kDelayN_EcId,   0, 2048);
3793
+  cmDspSetDefaultUInt(   ctx, &p->inst, kImpRespN_EcId, 0, 2048);
3794
+  cmDspSetDefaultUInt(   ctx, &p->inst, kDelayN_EcId,   0, 3963);
3795
 
3795
 
3796
   return &p->inst;
3796
   return &p->inst;
3797
 }
3797
 }
3815
   cmDspRC_t           rc = kOkDspRC;
3815
   cmDspRC_t           rc = kOkDspRC;
3816
   cmDspEchoCancel_t* p  = (cmDspEchoCancel_t*)inst;
3816
   cmDspEchoCancel_t* p  = (cmDspEchoCancel_t*)inst;
3817
 
3817
 
3818
+  cmNlmsEcWrite(p->r, "/Users/kevin/temp/kc");
3819
+  
3818
   cmNlmsEcFree(&p->r);
3820
   cmNlmsEcFree(&p->r);
3819
 
3821
 
3820
   return rc;
3822
   return rc;

Loading…
Cancel
Save