Pārlūkot izejas kodu

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

master
kevin 11 gadus atpakaļ
vecāks
revīzija
883891657f
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      dsp/cmDspKr.c

+ 2
- 2
dsp/cmDspKr.c Parādīt failu

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:

Notiek ielāde…
Atcelt
Saglabāt