瀏覽代碼

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
   }
650
   }
651
 
651
 
652
   // initialize the MIDI system
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
     rc = cmErrMsg(&p->err,kMidiSysFailAdRC,"The MIDI system initialization failed.");
655
     rc = cmErrMsg(&p->err,kMidiSysFailAdRC,"The MIDI system initialization failed.");
656
     goto errLabel;
656
     goto errLabel;

+ 1
- 1
cmMidiFilePlay.c 查看文件

336
   unsigned        mdParserBufByteCnt = 1024;
336
   unsigned        mdParserBufByteCnt = 1024;
337
 
337
 
338
   printf("Initializing MIDI Devices...\n");
338
   printf("Initializing MIDI Devices...\n");
339
-  cmMpInitialize( _cmMpCallbackTest, NULL, mdParserBufByteCnt,"app", &ctx->rpt );
339
+  cmMpInitialize( ctx, _cmMpCallbackTest, NULL, mdParserBufByteCnt,"app" );
340
 
340
 
341
   //mdReport();
341
   //mdReport();
342
 
342
 

Loading…
取消
儲存