Просмотр исходного кода

CmDspPgm.c : Added individual printer outputs for each MIDI data element.

master
kevin 11 лет назад
Родитель
Сommit
f2bed90054
1 измененных файлов: 8 добавлений и 5 удалений
  1. 8
    5
      dsp/cmDspPgm.c

+ 8
- 5
dsp/cmDspPgm.c Просмотреть файл

@@ -94,7 +94,10 @@ cmDspRC_t _cmDspSysPgm_Test_Midi( cmDspSysH_t h, void** userPtrPtr )
94 94
   cmDspInst_t* midiOut = cmDspSysAllocInst( h,"MidiOut", NULL,     2, deviceName, portName);
95 95
   
96 96
   cmDspInst_t* midiIn  = cmDspSysAllocInst( h,"MidiIn",  NULL,     0 );
97
-  cmDspInst_t* printer = cmDspSysAllocInst( h,"Printer", NULL,     1, ">" );
97
+  //cmDspInst_t* printer = cmDspSysAllocInst( h,"Printer", NULL,     1, ">" );
98
+  cmDspInst_t* prst = cmDspSysAllocInst( h,"Printer", NULL,     1, "st>" );
99
+  cmDspInst_t* prd0 = cmDspSysAllocInst( h,"Printer", NULL,     1, "d0>" );
100
+  cmDspInst_t* prd1 = cmDspSysAllocInst( h,"Printer", NULL,     1, "d1>" );
98 101
 
99 102
   // check for allocation errors
100 103
   if((rc = cmDspSysLastRC(h)) != kOkDspRC )
@@ -108,10 +111,10 @@ cmDspRC_t _cmDspSysPgm_Test_Midi( cmDspSysH_t h, void** userPtrPtr )
108 111
   cmDspSysInstallCb(   h, d0,      "val", midiOut, "d0",    NULL);
109 112
   cmDspSysInstallCb(   h, d1,      "val", midiOut, "d1",    NULL);
110 113
 
111
-  cmDspSysInstallCb(   h, midiIn,  "status", printer, "in", NULL);
112
-  cmDspSysInstallCb(   h, midiIn,  "d0",     printer, "in", NULL);
113
-  cmDspSysInstallCb(   h, midiIn,  "d1",     printer, "in", NULL);
114
-  cmDspSysInstallCb(   h, midiIn,  "smpidx", printer, "in", NULL);
114
+  cmDspSysInstallCb(   h, midiIn,  "status", prst, "in", NULL);
115
+  cmDspSysInstallCb(   h, midiIn,  "d0",     prd0, "in", NULL);
116
+  cmDspSysInstallCb(   h, midiIn,  "d1",     prd1, "in", NULL);
117
+  //cmDspSysInstallCb(   h, midiIn,  "smpidx", printer, "in", NULL);
115 118
 
116 119
  errLabel:
117 120
   return rc;

Загрузка…
Отмена
Сохранить