Browse Source

cmDspPgmKr.c : Removed 'midiInPort' resource string because the MIDI input

port does not require a device or port selector.
master
kevin 11 years ago
parent
commit
921597e50d
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      dsp/cmDspPgmKr.c

+ 3
- 5
dsp/cmDspPgmKr.c View File

@@ -42,7 +42,6 @@ typedef struct
42 42
   const cmChar_t* measFn;
43 43
   const cmChar_t* recordDir;
44 44
   const cmChar_t* midiDevice;
45
-  const cmChar_t* midiInPort;
46 45
   const cmChar_t* midiOutPort;
47 46
 } krRsrc_t;
48 47
 
@@ -58,9 +57,8 @@ cmDspRC_t krLoadRsrc(cmDspSysH_t h, cmErr_t* err, krRsrc_t* r)
58 57
   cmDspRsrcString(h,&r->modFn,       "modFn",        NULL);
59 58
   cmDspRsrcString(h,&r->measFn,      "measFn",       NULL);
60 59
   cmDspRsrcString(h,&r->recordDir,   "recordDir",    NULL);
61
-  cmDspRsrcString(h,&r->midiDevice,  "midiDevice",    NULL);
62
-  cmDspRsrcString(h,&r->midiInPort,  "midiOutPort",    NULL);
63
-  cmDspRsrcString(h,&r->midiOutPort, "midiInPort",    NULL);
60
+  cmDspRsrcString(h,&r->midiDevice,  "midiDevice",   NULL);
61
+  cmDspRsrcString(h,&r->midiOutPort, "midiOutPort",  NULL);
64 62
 
65 63
   
66 64
 
@@ -797,7 +795,7 @@ cmDspRC_t _cmDspSysPgm_KrLive(cmDspSysH_t h, void** userPtrPtr )
797 795
   //unsigned   compPreGrpSymId = cmDspSysPresetRegisterGroup(h,"tl_cmp"); 
798 796
 
799 797
 
800
-  cmDspInst_t* mip  = cmDspSysAllocInst(h, "MidiIn",    NULL,   2, r.midiDevice, r.midiInPort);
798
+  cmDspInst_t* mip  = cmDspSysAllocInst(h, "MidiIn",    NULL,   0);
801 799
   cmDspInst_t* mop  = cmDspSysAllocInst(h, "MidiOut",   NULL,   2, r.midiDevice, r.midiOutPort);
802 800
   cmDspInst_t* ai0p = cmDspSysAllocInst(h,"AudioIn",    NULL,   1, 0 );
803 801
   cmDspInst_t* ai1p = cmDspSysAllocInst(h,"AudioIn",    NULL,   1, 0 );

Loading…
Cancel
Save