Parcourir la source

cmDspPgmKr.c : Added 'audio in' button to switch 'live' and 'simulate'

audio input between the recorded and audio input port.
master
kevin il y a 11 ans
Parent
révision
d235d22da5
1 fichiers modifiés avec 10 ajouts et 8 suppressions
  1. 10
    8
      dsp/cmDspPgmKr.c

+ 10
- 8
dsp/cmDspPgmKr.c Voir le fichier

@@ -186,12 +186,13 @@ cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr )
186 186
 
187 187
 
188 188
   cmDspSysNewPage(h,"Controls");
189
-  cmDspInst_t* liveb= cmDspSysAllocInst(h,"Button", "live",   2, kCheckDuiId,  0.0 );
190
-  cmDspInst_t* simb = cmDspSysAllocInst(h,"Button", "simulate",2,kCheckDuiId,  0.0 );
191
-  cmDspInst_t* onb  = cmDspSysAllocInst(h,"Button", "start",  2, kButtonDuiId, 1.0 );
192
-  cmDspInst_t* offb = cmDspSysAllocInst(h,"Button", "stop",   2, kButtonDuiId, 1.0 );
193
-  cmDspInst_t* prtb = cmDspSysAllocInst(h,"Button", "print",  2, kButtonDuiId, 1.0 );
194
-  cmDspInst_t* qtb  = cmDspSysAllocInst(h,"Button", "quiet",  2, kButtonDuiId, 1.0 );
189
+  cmDspInst_t* liveb= cmDspSysAllocInst(h,"Button", "live",    2, kCheckDuiId,  0.0 );
190
+  cmDspInst_t* simb = cmDspSysAllocInst(h,"Button", "simulate",2, kCheckDuiId,  0.0 );
191
+  cmDspInst_t* ainb = cmDspSysAllocInst(h,"Button", "audio in",2, kCheckDuiId,  0.0 );
192
+  cmDspInst_t* onb  = cmDspSysAllocInst(h,"Button", "start",   2, kButtonDuiId, 1.0 );
193
+  cmDspInst_t* offb = cmDspSysAllocInst(h,"Button", "stop",    2, kButtonDuiId, 1.0 );
194
+  cmDspInst_t* prtb = cmDspSysAllocInst(h,"Button", "print",   2, kButtonDuiId, 1.0 );
195
+  cmDspInst_t* qtb  = cmDspSysAllocInst(h,"Button", "quiet",   2, kButtonDuiId, 1.0 );
195 196
   cmDspInst_t* prp  = cmDspSysAllocInst(h,"Printer", NULL,   1, ">" );
196 197
   cmDspInst_t* prd  = cmDspSysAllocInst(h,"Printer", NULL,   1, "DYN:" );
197 198
   cmDspInst_t* pre  = cmDspSysAllocInst(h,"Printer", NULL,   1, "EVEN:" );
@@ -416,8 +417,9 @@ cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr )
416 417
   cmDspSysInstallCb(h, liveb, "out",  au1Sw, "chidx", NULL );
417 418
 
418 419
   // 'simulate' button -> simulate router selector switch
419
-  cmDspSysInstallCb(h, simb,  "out",  au0Sw, "chidx", NULL );
420
-  cmDspSysInstallCb(h, simb,  "out",  au1Sw, "chidx", NULL );
420
+  cmDspSysInstallCb(h, simb,  "out",  ainb,  "in", NULL );
421
+  cmDspSysInstallCb(h, ainb,  "out",  au0Sw, "chidx", NULL );
422
+  cmDspSysInstallCb(h, ainb,  "out",  au1Sw, "chidx", NULL );
421 423
   cmDspSysInstallCb(h, simb,  "out",  siRt,  "sel", NULL );
422 424
   cmDspSysInstallCb(h, simb,  "out",  d1Rt,  "sel", NULL );
423 425
   cmDspSysInstallCb(h, simb,  "out",  d0Rt,  "sel", NULL );

Chargement…
Annuler
Enregistrer