From 921597e50d16866228036d461869901044fffc65 Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 16 Oct 2013 09:01:53 -0700 Subject: [PATCH] cmDspPgmKr.c : Removed 'midiInPort' resource string because the MIDI input port does not require a device or port selector. --- dsp/cmDspPgmKr.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dsp/cmDspPgmKr.c b/dsp/cmDspPgmKr.c index e26b6f0..d4efaaa 100644 --- a/dsp/cmDspPgmKr.c +++ b/dsp/cmDspPgmKr.c @@ -42,7 +42,6 @@ typedef struct const cmChar_t* measFn; const cmChar_t* recordDir; const cmChar_t* midiDevice; - const cmChar_t* midiInPort; const cmChar_t* midiOutPort; } krRsrc_t; @@ -58,9 +57,8 @@ cmDspRC_t krLoadRsrc(cmDspSysH_t h, cmErr_t* err, krRsrc_t* r) cmDspRsrcString(h,&r->modFn, "modFn", NULL); cmDspRsrcString(h,&r->measFn, "measFn", NULL); cmDspRsrcString(h,&r->recordDir, "recordDir", NULL); - cmDspRsrcString(h,&r->midiDevice, "midiDevice", NULL); - cmDspRsrcString(h,&r->midiInPort, "midiOutPort", NULL); - cmDspRsrcString(h,&r->midiOutPort, "midiInPort", NULL); + cmDspRsrcString(h,&r->midiDevice, "midiDevice", NULL); + cmDspRsrcString(h,&r->midiOutPort, "midiOutPort", NULL); @@ -797,7 +795,7 @@ cmDspRC_t _cmDspSysPgm_KrLive(cmDspSysH_t h, void** userPtrPtr ) //unsigned compPreGrpSymId = cmDspSysPresetRegisterGroup(h,"tl_cmp"); - cmDspInst_t* mip = cmDspSysAllocInst(h, "MidiIn", NULL, 2, r.midiDevice, r.midiInPort); + cmDspInst_t* mip = cmDspSysAllocInst(h, "MidiIn", NULL, 0); cmDspInst_t* mop = cmDspSysAllocInst(h, "MidiOut", NULL, 2, r.midiDevice, r.midiOutPort); cmDspInst_t* ai0p = cmDspSysAllocInst(h,"AudioIn", NULL, 1, 0 ); cmDspInst_t* ai1p = cmDspSysAllocInst(h,"AudioIn", NULL, 1, 0 );