Sfoglia il codice sorgente

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

fixed delay time and impulse response length.
master
kevin 9 anni fa
parent
commit
66660cb6de
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 4
    2
      dsp/cmDspKr.c

+ 4
- 2
dsp/cmDspKr.c Vedi File

@@ -3790,8 +3790,8 @@ cmDspInst_t*  _cmDspEchoCancelAlloc(cmDspCtx_t* ctx, cmDspClass_t* classPtr, uns
3790 3790
   p->r = cmNlmsEcAlloc(ctx->cmProcCtx, NULL, 0,0,0 );
3791 3791
   
3792 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 3796
   return &p->inst;
3797 3797
 }
@@ -3815,6 +3815,8 @@ cmDspRC_t _cmDspEchoCancelFree(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEv
3815 3815
   cmDspRC_t           rc = kOkDspRC;
3816 3816
   cmDspEchoCancel_t* p  = (cmDspEchoCancel_t*)inst;
3817 3817
 
3818
+  cmNlmsEcWrite(p->r, "/Users/kevin/temp/kc");
3819
+  
3818 3820
   cmNlmsEcFree(&p->r);
3819 3821
 
3820 3822
   return rc;

Loading…
Annulla
Salva