浏览代码

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
 

正在加载...
取消
保存