Ver código fonte

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

master
kevin 11 anos atrás
pai
commit
89ad5d8857
1 arquivos alterados com 9 adições e 5 exclusões
  1. 9
    5
      dsp/cmDspKr.c

+ 9
- 5
dsp/cmDspKr.c Ver arquivo

572
   }
572
   }
573
 
573
 
574
   if((tlFn =  cmDspStrcz(inst, kFnScId )) !=  NULL )
574
   if((tlFn =  cmDspStrcz(inst, kFnScId )) !=  NULL )
575
+  {
575
     if( cmScoreInitialize(ctx->cmCtx, &p->scH, tlFn, cmDspSampleRate(ctx), dynRefArray, dynRefCnt, _cmDspScoreCb, p, ctx->stH ) != kOkTlRC )
576
     if( cmScoreInitialize(ctx->cmCtx, &p->scH, tlFn, cmDspSampleRate(ctx), dynRefArray, dynRefCnt, _cmDspScoreCb, p, ctx->stH ) != kOkTlRC )
576
       rc = cmErrMsg(&inst->classPtr->err, kInstResetFailDspRC, "Score file open failed.");
577
       rc = cmErrMsg(&inst->classPtr->err, kInstResetFailDspRC, "Score file open failed.");
577
-
578
+    //else
579
+    //  cmScorePrintLoc(p->scH);
580
+  }
578
  errLabel:
581
  errLabel:
579
   return rc;
582
   return rc;
580
 }
583
 }
2365
   p->chCnt          = chCnt;
2368
   p->chCnt          = chCnt;
2366
   p->scLocIdx       = 0;
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
   return &p->inst;
2376
   return &p->inst;
2374
 }
2377
 }
2456
       break;
2459
       break;
2457
 
2460
 
2458
     case kCurLaSecsPrId:
2461
     case kCurLaSecsPrId:
2462
+      cmRecdPlaySetLaSecs(p->rcdply, cmDspDouble(inst,kCurLaSecsPrId));
2459
       break;
2463
       break;
2460
 
2464
 
2461
     case kScLocIdxPrId:
2465
     case kScLocIdxPrId:

Carregando…
Cancelar
Salvar