From 66660cb6dee028beb4a100c54e4de855f501e8a1 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Aug 2015 17:50:32 -0400 Subject: [PATCH] cmDspKr.c : Added call to cmNlmsEcWrite() and set new default values for the fixed delay time and impulse response length. --- dsp/cmDspKr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dsp/cmDspKr.c b/dsp/cmDspKr.c index 9f93702..5ef1f88 100644 --- a/dsp/cmDspKr.c +++ b/dsp/cmDspKr.c @@ -3790,8 +3790,8 @@ cmDspInst_t* _cmDspEchoCancelAlloc(cmDspCtx_t* ctx, cmDspClass_t* classPtr, uns p->r = cmNlmsEcAlloc(ctx->cmProcCtx, NULL, 0,0,0 ); cmDspSetDefaultDouble( ctx, &p->inst, kMuEcId, 0, 0.1); - cmDspSetDefaultUInt( ctx, &p->inst, kImpRespN_EcId, 0, 256); - cmDspSetDefaultUInt( ctx, &p->inst, kDelayN_EcId, 0, 2048); + cmDspSetDefaultUInt( ctx, &p->inst, kImpRespN_EcId, 0, 2048); + cmDspSetDefaultUInt( ctx, &p->inst, kDelayN_EcId, 0, 3963); return &p->inst; } @@ -3815,6 +3815,8 @@ cmDspRC_t _cmDspEchoCancelFree(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEv cmDspRC_t rc = kOkDspRC; cmDspEchoCancel_t* p = (cmDspEchoCancel_t*)inst; + cmNlmsEcWrite(p->r, "/Users/kevin/temp/kc"); + cmNlmsEcFree(&p->r); return rc;