Browse Source

cmDspKr.c: Added call to cmRecdPlaySetLaSecs() in _cmDspRecdPlayRecv()

master
kevin 10 years ago
parent
commit
89ad5d8857
1 changed files with 9 additions and 5 deletions
  1. 9
    5
      dsp/cmDspKr.c

+ 9
- 5
dsp/cmDspKr.c View File

@@ -572,9 +572,12 @@ cmDspRC_t _cmDspScoreReset(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_t*
572 572
   }
573 573
 
574 574
   if((tlFn =  cmDspStrcz(inst, kFnScId )) !=  NULL )
575
+  {
575 576
     if( cmScoreInitialize(ctx->cmCtx, &p->scH, tlFn, cmDspSampleRate(ctx), dynRefArray, dynRefCnt, _cmDspScoreCb, p, ctx->stH ) != kOkTlRC )
576 577
       rc = cmErrMsg(&inst->classPtr->err, kInstResetFailDspRC, "Score file open failed.");
577
-
578
+    //else
579
+    //  cmScorePrintLoc(p->scH);
580
+  }
578 581
  errLabel:
579 582
   return rc;
580 583
 }
@@ -2365,10 +2368,10 @@ cmDspInst_t*  _cmDspRecdPlayAlloc(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsig
2365 2368
   p->chCnt          = chCnt;
2366 2369
   p->scLocIdx       = 0;
2367 2370
 
2368
-  cmDspSetDefaultDouble(ctx,&p->inst, kSecsPrId,     0, 10.0 );
2369
-  cmDspSetDefaultDouble(ctx,&p->inst, kMaxLaSecsPrId,0, 2.0);
2370
-  cmDspSetDefaultDouble(ctx,&p->inst, kCurLaSecsPrId,0, 0.5);
2371
-  cmDspSetDefaultDouble(ctx,&p->inst, kFadeRatePrId, 0, 1.0);
2371
+  cmDspSetDefaultDouble(ctx,&p->inst, kSecsPrId,     0.0, 10.0 );
2372
+  cmDspSetDefaultDouble(ctx,&p->inst, kMaxLaSecsPrId,0.0, 2.0);
2373
+  cmDspSetDefaultDouble(ctx,&p->inst, kCurLaSecsPrId,0.0, 0.1);
2374
+  cmDspSetDefaultDouble(ctx,&p->inst, kFadeRatePrId, 0.0, 1.0);
2372 2375
 
2373 2376
   return &p->inst;
2374 2377
 }
@@ -2456,6 +2459,7 @@ cmDspRC_t _cmDspRecdPlayRecv(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_
2456 2459
       break;
2457 2460
 
2458 2461
     case kCurLaSecsPrId:
2462
+      cmRecdPlaySetLaSecs(p->rcdply, cmDspDouble(inst,kCurLaSecsPrId));
2459 2463
       break;
2460 2464
 
2461 2465
     case kScLocIdxPrId:

Loading…
Cancel
Save