|
@@ -512,7 +512,7 @@ cmDspRC_t _cmDspScoreReset(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_t*
|
512
|
512
|
}
|
513
|
513
|
|
514
|
514
|
if((tlFn = cmDspStrcz(inst, kFnScId )) != NULL )
|
515
|
|
- if( cmScoreInitialize(ctx->cmCtx, &p->scH, tlFn, dynRefArray, dynRefCnt, _cmDspScoreCb, p ) != kOkTlRC )
|
|
515
|
+ if( cmScoreInitialize(ctx->cmCtx, &p->scH, tlFn, cmDspSampleRate(ctx), dynRefArray, dynRefCnt, _cmDspScoreCb, p ) != kOkTlRC )
|
516
|
516
|
rc = cmErrMsg(&inst->classPtr->err, kInstResetFailDspRC, "Score file open failed.");
|
517
|
517
|
|
518
|
518
|
errLabel:
|
|
@@ -893,7 +893,7 @@ cmDspRC_t _cmDspScFolOpenScore( cmDspCtx_t* ctx, cmDspInst_t* inst )
|
893
|
893
|
goto errLabel;
|
894
|
894
|
}
|
895
|
895
|
|
896
|
|
- if( cmScoreInitialize(ctx->cmCtx, &p->scH, fn, NULL, 0, NULL, NULL ) != kOkScRC )
|
|
896
|
+ if( cmScoreInitialize(ctx->cmCtx, &p->scH, fn, cmDspSampleRate(ctx), NULL, 0, NULL, NULL ) != kOkScRC )
|
897
|
897
|
return cmErrMsg(&inst->classPtr->err, kSubSysFailDspRC, "Unable to open the score '%s'.",fn);
|
898
|
898
|
|
899
|
899
|
errLabel:
|