From 89ad5d8857ea0e7ef7673a365f9941f047e2ba6e Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 19 Nov 2013 19:30:10 -0800 Subject: [PATCH] cmDspKr.c: Added call to cmRecdPlaySetLaSecs() in _cmDspRecdPlayRecv() --- dsp/cmDspKr.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/dsp/cmDspKr.c b/dsp/cmDspKr.c index a19bb2f..d397149 100644 --- a/dsp/cmDspKr.c +++ b/dsp/cmDspKr.c @@ -572,9 +572,12 @@ cmDspRC_t _cmDspScoreReset(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_t* } if((tlFn = cmDspStrcz(inst, kFnScId )) != NULL ) + { if( cmScoreInitialize(ctx->cmCtx, &p->scH, tlFn, cmDspSampleRate(ctx), dynRefArray, dynRefCnt, _cmDspScoreCb, p, ctx->stH ) != kOkTlRC ) rc = cmErrMsg(&inst->classPtr->err, kInstResetFailDspRC, "Score file open failed."); - + //else + // cmScorePrintLoc(p->scH); + } errLabel: return rc; } @@ -2365,10 +2368,10 @@ cmDspInst_t* _cmDspRecdPlayAlloc(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsig p->chCnt = chCnt; p->scLocIdx = 0; - cmDspSetDefaultDouble(ctx,&p->inst, kSecsPrId, 0, 10.0 ); - cmDspSetDefaultDouble(ctx,&p->inst, kMaxLaSecsPrId,0, 2.0); - cmDspSetDefaultDouble(ctx,&p->inst, kCurLaSecsPrId,0, 0.5); - cmDspSetDefaultDouble(ctx,&p->inst, kFadeRatePrId, 0, 1.0); + cmDspSetDefaultDouble(ctx,&p->inst, kSecsPrId, 0.0, 10.0 ); + cmDspSetDefaultDouble(ctx,&p->inst, kMaxLaSecsPrId,0.0, 2.0); + cmDspSetDefaultDouble(ctx,&p->inst, kCurLaSecsPrId,0.0, 0.1); + cmDspSetDefaultDouble(ctx,&p->inst, kFadeRatePrId, 0.0, 1.0); return &p->inst; } @@ -2456,6 +2459,7 @@ cmDspRC_t _cmDspRecdPlayRecv(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_ break; case kCurLaSecsPrId: + cmRecdPlaySetLaSecs(p->rcdply, cmDspDouble(inst,kCurLaSecsPrId)); break; case kScLocIdxPrId: