Kaynağa Gözat

cmDspPgm.c : Updated cmDspSysPgm_Test_Midi with hardcoded OSX device/port.

master
kevin 11 yıl önce
ebeveyn
işleme
bb4aea8471
1 değiştirilmiş dosya ile 15 ekleme ve 1 silme
  1. 15
    1
      dsp/cmDspPgm.c

+ 15
- 1
dsp/cmDspPgm.c Dosyayı Görüntüle

@@ -29,11 +29,25 @@ cmDspRC_t _cmDspSysPgm_Test_Midi( cmDspSysH_t h, void** userPtrPtr )
29 29
 {
30 30
   cmDspRC_t rc = kOkDspRC;
31 31
 
32
+  const cmChar_t* deviceName = "Fastlane";
33
+  const cmChar_t* portName   = "Fastlane MIDI A";
34
+
35
+#ifdef OS_OSX
36
+
37
+  deviceName = "MOTU - FastLane USB";
38
+  portName   = "Port A";
39
+
40
+  deviceName = "RME - Fireface UFX (23148636)";
41
+  portName   = "Port 2";
42
+
43
+#endif
44
+
32 45
   cmDspInst_t* sendBtn = cmDspSysAllocInst( h,"Button", "Send",    2, kButtonDuiId, 0.0 );
33 46
   cmDspInst_t* status  = cmDspSysAllocInst( h,"Scalar", "Status",  5, kNumberDuiId, 0.0,  127.0, 1.0,  144.0);
34 47
   cmDspInst_t* d0      = cmDspSysAllocInst( h,"Scalar", "D0",      5, kNumberDuiId, 0.0,  127.0, 1.0,  64.0);
35 48
   cmDspInst_t* d1      = cmDspSysAllocInst( h,"Scalar", "D1",      5, kNumberDuiId, 0.0,  127.0, 1.0,  64.0);
36
-  cmDspInst_t* midiOut = cmDspSysAllocInst( h,"MidiOut", NULL,     2, "Fastlane", "Fastlane MIDI A");
49
+  cmDspInst_t* midiOut = cmDspSysAllocInst( h,"MidiOut", NULL,     2, deviceName, portName);
50
+  
37 51
   cmDspInst_t* midiIn  = cmDspSysAllocInst( h,"MidiIn",  NULL,     0 );
38 52
   cmDspInst_t* printer = cmDspSysAllocInst( h,"Printer", NULL,     1, ">" );
39 53
 

Loading…
İptal
Kaydet