From c07243c4fd213c8e1af17cd88a6994c6f15a74e6 Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 24 Mar 2013 12:54:11 -0700 Subject: [PATCH] cmAudDsp.c,cmMidiFilePlay.c: Changed cmMpInitialize() signature to use cmCtx_t according to convention. --- cmAudDsp.c | 2 +- cmMidiFilePlay.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();