Преглед на файлове

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

master
kevin преди 11 години
родител
ревизия
c07243c4fd
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1
    1
      cmAudDsp.c
  2. 1
    1
      cmMidiFilePlay.c

+ 1
- 1
cmAudDsp.c Целия файл

@@ -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 Целия файл

@@ -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
 

Loading…
Отказ
Запис