diff --git a/cmAudDsp.c b/cmAudDsp.c index ddab770..0190307 100644 --- a/cmAudDsp.c +++ b/cmAudDsp.c @@ -650,7 +650,7 @@ cmAdRC_t cmAudDspAlloc( cmCtx_t* ctx, cmAdH_t* hp, cmMsgSendFuncPtr_t cbFunc, vo } // initialize the MIDI system - if( cmMpInitialize(NULL,NULL,p->midiPortBufByteCnt,"app",&ctx->rpt) != kOkMpRC ) + if( cmMpInitialize(ctx,NULL,NULL,p->midiPortBufByteCnt,"app") != kOkMpRC ) { rc = cmErrMsg(&p->err,kMidiSysFailAdRC,"The MIDI system initialization failed."); goto errLabel; diff --git a/cmMidiFilePlay.c b/cmMidiFilePlay.c index 449b1a7..6b04ab2 100644 --- a/cmMidiFilePlay.c +++ b/cmMidiFilePlay.c @@ -336,7 +336,7 @@ cmMfpRC_t cmMfpTest( const char* fn, cmCtx_t* ctx ) unsigned mdParserBufByteCnt = 1024; printf("Initializing MIDI Devices...\n"); - cmMpInitialize( _cmMpCallbackTest, NULL, mdParserBufByteCnt,"app", &ctx->rpt ); + cmMpInitialize( ctx, _cmMpCallbackTest, NULL, mdParserBufByteCnt,"app" ); //mdReport();