Bladeren bron

cmAudDsp.c,cmMidiFilePlay.c: Changed cmMpInitialize() signature to use cmCtx_t according to convention.

master
kevin 11 jaren geleden
bovenliggende
commit
c07243c4fd
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1
    1
      cmAudDsp.c
  2. 1
    1
      cmMidiFilePlay.c

+ 1
- 1
cmAudDsp.c Bestand weergeven

@@ -650,7 +650,7 @@ cmAdRC_t cmAudDspAlloc( cmCtx_t* ctx, cmAdH_t* hp, cmMsgSendFuncPtr_t cbFunc, vo
650 650
   }
651 651
 
652 652
   // initialize the MIDI system
653
-  if( cmMpInitialize(NULL,NULL,p->midiPortBufByteCnt,"app",&ctx->rpt) != kOkMpRC )
653
+  if( cmMpInitialize(ctx,NULL,NULL,p->midiPortBufByteCnt,"app") != kOkMpRC )
654 654
   {
655 655
     rc = cmErrMsg(&p->err,kMidiSysFailAdRC,"The MIDI system initialization failed.");
656 656
     goto errLabel;

+ 1
- 1
cmMidiFilePlay.c Bestand weergeven

@@ -336,7 +336,7 @@ cmMfpRC_t cmMfpTest( const char* fn, cmCtx_t* ctx )
336 336
   unsigned        mdParserBufByteCnt = 1024;
337 337
 
338 338
   printf("Initializing MIDI Devices...\n");
339
-  cmMpInitialize( _cmMpCallbackTest, NULL, mdParserBufByteCnt,"app", &ctx->rpt );
339
+  cmMpInitialize( ctx, _cmMpCallbackTest, NULL, mdParserBufByteCnt,"app" );
340 340
 
341 341
   //mdReport();
342 342
 

Laden…
Annuleren
Opslaan