Browse Source

cmDspKr.c Changes to reflect new cmScoreInitialize() signature.

master
kevin 12 years ago
parent
commit
883891657f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      dsp/cmDspKr.c

+ 2
- 2
dsp/cmDspKr.c View File

512
   }
512
   }
513
 
513
 
514
   if((tlFn =  cmDspStrcz(inst, kFnScId )) !=  NULL )
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
       rc = cmErrMsg(&inst->classPtr->err, kInstResetFailDspRC, "Score file open failed.");
516
       rc = cmErrMsg(&inst->classPtr->err, kInstResetFailDspRC, "Score file open failed.");
517
 
517
 
518
  errLabel:
518
  errLabel:
893
     goto errLabel;
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
     return cmErrMsg(&inst->classPtr->err, kSubSysFailDspRC, "Unable to open the score '%s'.",fn);
897
     return cmErrMsg(&inst->classPtr->err, kSubSysFailDspRC, "Unable to open the score '%s'.",fn);
898
 
898
 
899
  errLabel:
899
  errLabel:

Loading…
Cancel
Save