Browse Source

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

port does not require a device or port selector.
master
kevin 10 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
   const cmChar_t* measFn;
42
   const cmChar_t* measFn;
43
   const cmChar_t* recordDir;
43
   const cmChar_t* recordDir;
44
   const cmChar_t* midiDevice;
44
   const cmChar_t* midiDevice;
45
-  const cmChar_t* midiInPort;
46
   const cmChar_t* midiOutPort;
45
   const cmChar_t* midiOutPort;
47
 } krRsrc_t;
46
 } krRsrc_t;
48
 
47
 
58
   cmDspRsrcString(h,&r->modFn,       "modFn",        NULL);
57
   cmDspRsrcString(h,&r->modFn,       "modFn",        NULL);
59
   cmDspRsrcString(h,&r->measFn,      "measFn",       NULL);
58
   cmDspRsrcString(h,&r->measFn,      "measFn",       NULL);
60
   cmDspRsrcString(h,&r->recordDir,   "recordDir",    NULL);
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
   //unsigned   compPreGrpSymId = cmDspSysPresetRegisterGroup(h,"tl_cmp"); 
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
   cmDspInst_t* mop  = cmDspSysAllocInst(h, "MidiOut",   NULL,   2, r.midiDevice, r.midiOutPort);
799
   cmDspInst_t* mop  = cmDspSysAllocInst(h, "MidiOut",   NULL,   2, r.midiDevice, r.midiOutPort);
802
   cmDspInst_t* ai0p = cmDspSysAllocInst(h,"AudioIn",    NULL,   1, 0 );
800
   cmDspInst_t* ai0p = cmDspSysAllocInst(h,"AudioIn",    NULL,   1, 0 );
803
   cmDspInst_t* ai1p = cmDspSysAllocInst(h,"AudioIn",    NULL,   1, 0 );
801
   cmDspInst_t* ai1p = cmDspSysAllocInst(h,"AudioIn",    NULL,   1, 0 );

Loading…
Cancel
Save