Pārlūkot izejas kodu

cmDspPgmKrTimeLineLite.c : More code simplifications.

master
kevin 8 gadus atpakaļ
vecāks
revīzija
e4e1443922
1 mainītis faili ar 15 papildinājumiem un 143 dzēšanām
  1. 15
    143
      dsp/cmDspPgmKrTimeLineLite.c

+ 15
- 143
dsp/cmDspPgmKrTimeLineLite.c Parādīt failu

@@ -46,26 +46,11 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
46 46
   cmErr_t   err;
47 47
   krRsrc_t  r;
48 48
 
49
-  //unsigned  wtLoopCnt                = 1; // 1=play once (-1=loop forever)
50
-  //unsigned  wtInitMode               = 0; // initial wt mode is 'silence'
51
-  //unsigned  wtSmpCnt                 = floor(cmDspSysSampleRate(h)); // wt length == srate
52
-
53 49
   unsigned  sfBufCnt                 = 7;     // length of the MIDI event buffer
54 50
   unsigned  sfMaxWndCnt              = 10;    // length of the score event buffer
55 51
   unsigned  sfMinVel                 = 5;     // ignore MIDI events below this velocity
56 52
   bool      sfEnaMeasFl              = false;
57 53
 
58
-  double    recdPlayInitAllocSecs    = 10.0;
59
-  double    recdPlayMaxLaSecs        = 2.0;
60
-  double    recdPlayCurLaSecs        = 0.1;
61
-  double    recdPlayFadeRateDbPerSec = 4.0;
62
-
63
-
64
-  bool            apfBypassFl  = false;
65
-  unsigned        apfModeSymId  = cmSymTblRegisterStaticSymbol(cmDspSysSymbolTable(h),"AP");
66
-  double          apfF0hz       = 100.0;
67
-  double          apfQ          = 1.0;
68
-  double          apfGain       = 1.0;
69 54
  
70 55
   memset(&r,0,sizeof(r));
71 56
   cmErrSetup(&err,&cmCtx->rpt,"Kr TimelineLite");
@@ -75,18 +60,10 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
75 60
 
76 61
   cmDspInst_t* ai0p = cmDspSysAllocInst(h,"AudioIn",     NULL,  1, 0);
77 62
   cmDspInst_t* ai1p = cmDspSysAllocInst(h,"AudioIn",     NULL,  1, 1);
78
-  cmDspInst_t* ai2p = cmDspSysAllocInst(h,"AudioIn",     NULL,  1, 2);
79
-  cmDspInst_t* ai3p = cmDspSysAllocInst(h,"AudioIn",     NULL,  1, 3);
80
-
81
-  cmDspInst_t* mx0p = cmDspSysAllocInst( h, "AMix",      NULL, 3, 2, 0.5, 0.5);
82
-  cmDspInst_t* mx1p = cmDspSysAllocInst( h, "AMix",      NULL, 3, 2, 0.5, 0.5);
83
-
63
+  
84 64
   cmDspInst_t* tlp  = cmDspSysAllocInst(h,"TimeLine",    "tl",  2, r.tlFn, r.tlPrefixPath );
85 65
   cmDspInst_t* scp  = cmDspSysAllocInst(h,"Score",       "sc",  1, r.scFn );
86
-  //cmDspInst_t* php  = cmDspSysAllocInst(h,"Phasor",      NULL,  1, cmDspSysSampleRate(h) );
87
-  //cmDspInst_t* wtp  = cmDspSysAllocInst(h,"WaveTable",   NULL,  4, wtSmpCnt, wtInitMode, NULL, wtLoopCnt );
88 66
   cmDspInst_t* pts  = cmDspSysAllocInst(h,"PortToSym",   NULL,  2, "on", "off" );
89
-  //cmDspInst_t* mip  = cmDspSysAllocInst(h,"MidiIn",      NULL,  0 );
90 67
 
91 68
   cmDspInst_t* mfp  = cmDspSysAllocInst(h,"MidiFilePlay",NULL,  0 );
92 69
   cmDspInst_t* nmp  = cmDspSysAllocInst(h,"NanoMap",     NULL,  0 );
@@ -94,9 +71,7 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
94 71
   cmDspInst_t* mo2p = cmDspSysAllocInst(h,"MidiOut",     NULL,  2, r.midiDevice,r.midiOutPort2);
95 72
   cmDspInst_t* sfp  = cmDspSysAllocInst(h,"ScFol",       NULL,  1, r.scFn, sfBufCnt, sfMaxWndCnt, sfMinVel, sfEnaMeasFl );
96 73
   cmDspInst_t* amp  = cmDspSysAllocInst(h,"ActiveMeas",  NULL,  1, 100 );
97
-  cmDspInst_t* rpp  = cmDspSysAllocInst(h,"RecdPlay",    NULL,  6, 2, r.scFn, recdPlayInitAllocSecs, recdPlayMaxLaSecs, recdPlayCurLaSecs, recdPlayFadeRateDbPerSec);
98 74
   cmDspInst_t* modp = cmDspSysAllocInst(h,"ScMod",       NULL,  2, r.modFn, "m1" );
99
-  cmDspInst_t* modr = cmDspSysAllocInst(h,"ScMod",       NULL,  2, r.modFn, "m1" );
100 75
  
101 76
   unsigned   preGrpSymId     = cmDspSysPresetRegisterGroup(h,"tl");
102 77
   unsigned   cmpPreGrpSymId  = cmDspSysPresetRegisterGroup(h,"tl_cmp"); 
@@ -110,15 +85,8 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
110 85
   _cmDspSys_TlXformChain(h, &c1, preGrpSymId, cmpPreGrpSymId, modp, 1, 1 );
111 86
 
112 87
 
113
-  cmDspInst_t* apf0 =  cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, apfBypassFl, apfModeSymId, apfF0hz+0, apfQ, apfGain  ); 
114
-  cmDspInst_t* apf1 =  cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, apfBypassFl, apfModeSymId, apfF0hz+100.0, apfQ, apfGain  ); 
115
-  cmDspInst_t* apf2 =  cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, apfBypassFl, apfModeSymId, apfF0hz+200.0, apfQ, apfGain  ); 
116
-  cmDspInst_t* apf3 =  cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, apfBypassFl, apfModeSymId, apfF0hz+300.0, apfQ, apfGain  ); 
117
-
118 88
   cmDspInst_t* ao0p = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 2 );
119 89
   cmDspInst_t* ao1p = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 3 );
120
-  cmDspInst_t* ao2p = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 4 );
121
-  cmDspInst_t* ao3p = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 5 );
122 90
 
123 91
   cmDspSysNewPage(h,"Main");
124 92
   cmDspInst_t* liveb= cmDspSysAllocInst(h,"Button", "live",    2, kCheckDuiId,  0.0 );
@@ -127,18 +95,14 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
127 95
   cmDspInst_t* measb= cmDspSysAllocInst(h,"Button", "meas",    2, kCheckDuiId,  0.0 );
128 96
   cmDspInst_t* onb  = cmDspSysAllocInst(h,"Button", "start",   2, kButtonDuiId, 1.0 );
129 97
   cmDspInst_t* offb = cmDspSysAllocInst(h,"Button", "stop",    2, kButtonDuiId, 1.0 );
130
-  //cmDspInst_t* prtb = cmDspSysAllocInst(h,"Button", "print",   2, kButtonDuiId, 1.0 );
131
-  //cmDspInst_t* qtb  = cmDspSysAllocInst(h,"Button", "quiet",   2, kButtonDuiId, 1.0 );
132 98
   cmDspInst_t* prp  = cmDspSysAllocInst(h,"Printer", NULL,   1, ">" );
133 99
   cmDspInst_t* prd  = cmDspSysAllocInst(h,"Printer", NULL,   1, "DYN:" );
134 100
   cmDspInst_t* pre  = cmDspSysAllocInst(h,"Printer", NULL,   1, "EVEN:" );
135 101
   cmDspInst_t* prt  = cmDspSysAllocInst(h,"Printer", NULL,   1, "TEMPO:");
136 102
   cmDspInst_t* prc  = cmDspSysAllocInst(h,"Printer", NULL,   1, "COST:");
137
-  //cmDspInst_t* prv  = cmDspSysAllocInst(h,"Printer", NULL,   1, "Value:");
138 103
 
139 104
   // Record <-> Live switches
140 105
   cmDspInst_t* tlRt  = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);  // time line swich
141
-  //cmDspInst_t* wtRt  = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
142 106
   cmDspInst_t* mfpRt = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
143 107
   cmDspInst_t* amRt  = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
144 108
   cmDspInst_t* au0Sw = cmDspSysAllocInst(h,"1ofN",   NULL, 2, 2, 0);
@@ -153,22 +117,10 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
153 117
   cmDspSysNewColumn(h,0);
154 118
   cmDspInst_t* igain0 = cmDspSysAllocInst(h,"Scalar", "In Gain-0",    5, kNumberDuiId, 0.0,   100.0,0.01,   1.0 );  
155 119
   cmDspInst_t* igain1 = cmDspSysAllocInst(h,"Scalar", "In Gain-1",    5, kNumberDuiId, 0.0,   100.0,0.01,   1.0 );  
156
-  cmDspInst_t* igain2 = cmDspSysAllocInst(h,"Scalar", "In Gain-2",    5, kNumberDuiId, 0.0,   100.0,0.01,   1.0 );  
157
-  cmDspInst_t* igain3 = cmDspSysAllocInst(h,"Scalar", "In Gain-3",    5, kNumberDuiId, 0.0,   100.0,0.01,   1.0 );  
158
-
159
-  cmDspInst_t* lasecs = cmDspSysAllocInst(h,"Scalar", "LA Secs",      5, kNumberDuiId, 0.0,   recdPlayMaxLaSecs,0.01,   recdPlayCurLaSecs );  
160
-  cmDspInst_t* dbpsec = cmDspSysAllocInst(h,"Scalar", "Fade dBpSec",  5, kNumberDuiId, 0.0,   24.0, 0.01, recdPlayFadeRateDbPerSec);
161
-  cmDspInst_t* apfByp = cmDspSysAllocCheck(  h, "APF-Bypass", 0.0 );
162
-
163
-
164 120
 
165 121
   cmDspSysNewColumn(h,0);
166 122
   cmDspInst_t* ogain0 = cmDspSysAllocInst(h,"Scalar", "Out Gain-0",   5, kNumberDuiId, 0.0,   10.0,0.01,   1.0 );  
167 123
   cmDspInst_t* ogain1 = cmDspSysAllocInst(h,"Scalar", "Out Gain-1",   5, kNumberDuiId, 0.0,   10.0,0.01,   1.0 );  
168
-  cmDspInst_t* ogain2 = cmDspSysAllocInst(h,"Scalar", "Out Gain-2",   5, kNumberDuiId, 0.0,   10.0,0.01,   1.0 );  
169
-  cmDspInst_t* ogain3 = cmDspSysAllocInst(h,"Scalar", "Out Gain-3",   5, kNumberDuiId, 0.0,   10.0,0.01,   1.0 );  
170
-
171
-  //cmDspInst_t* scLoc = cmDspSysAllocInst(h,"Scalar", "Sc Loc",   5, kNumberDuiId, 0.0,   3000.0, 1.0,   0.0 );  
172 124
 
173 125
   // Audio file recording
174 126
   cmDspInst_t* recdGain= cmDspSysAllocInst(h,"Scalar", "Recd Gain",  5, kNumberDuiId, 0.0,   100.0,0.01, 1.5 );  
@@ -177,8 +129,6 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
177 129
   cmDspInst_t* afop    = cmDspSysAllocInst(h,"AudioFileOut",NULL,    2, r.recordDir,2);
178 130
   cmDspInst_t* mi0p    = cmDspSysAllocInst(h,"AMeter","In 0",  0);
179 131
   cmDspInst_t* mi1p    = cmDspSysAllocInst(h,"AMeter","In 1",  0);
180
-  cmDspInst_t* mi2p    = cmDspSysAllocInst(h,"AMeter","In 2",  0);
181
-  cmDspInst_t* mi3p    = cmDspSysAllocInst(h,"AMeter","In 3",  0);
182 132
 
183 133
 
184 134
   //--------------- Preset controls
@@ -202,9 +152,6 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
202 152
   cmDspInst_t* mlst    = cmDspSysAllocInst(   h, "MsgList",   NULL, 3, "meas", r.measFn, 2);
203 153
   cmDspInst_t* amCmd   = cmDspSysAllocInst(   h, "PortToSym", NULL, 2, "add", "rewind" );  
204 154
 
205
-
206
-
207
-
208 155
   if((rc = cmDspSysLastRC(h)) != kOkDspRC )
209 156
     return rc;
210 157
 
@@ -217,51 +164,23 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
217 164
 
218 165
 
219 166
   // Audio connections
220
-  //cmDspSysConnectAudio(h, php,  "out",   wtp,  "phs" );     // phs -> wt
221
-
222
-  cmDspSysConnectAudio( h, ai0p, "out", mi0p, "in");
223
-  cmDspSysConnectAudio( h, ai1p, "out", mi1p, "in");
224
-  cmDspSysConnectAudio( h, ai2p, "out", mi2p, "in");
225
-  cmDspSysConnectAudio( h, ai3p, "out", mi3p, "in");
226
-
227
-
228
-  cmDspSysConnectAudio(h, ai0p, "out", mx0p, "in-0" );  // eqmix -> input mix
229
-  cmDspSysConnectAudio(h, ai1p, "out", mx1p, "in-0" );
230
-  cmDspSysConnectAudio(h, ai2p, "out", mx0p, "in-1" );
231
-  cmDspSysConnectAudio(h, ai3p, "out", mx1p, "in-1" );
232
-
233
-  cmDspSysConnectAudio(h, mx0p,  "out", rpp,   "in-0");    // sw  -> rcdply
234
-
235
-
236
-  cmDspSysConnectAudio(h, mx0p,   "out",   c0.kr0, "in" ); // ain -> sw
237
-
238
-
239
-  cmDspSysConnectAudio(h, c0.cmp, "out", apf0, "in" );
240
-  cmDspSysConnectAudio(h, c0.cmp, "out", apf2, "in" );
241
-  cmDspSysConnectAudio(h, apf0,  "out", ao0p,  "in" );
242
-  cmDspSysConnectAudio(h, apf2,  "out", ao2p,  "in" );
243
-
244
-
245
-  cmDspSysConnectAudio(h, mx1p,  "out", rpp,   "in-1");    // sw  -> rcdply
246
-
247
-  cmDspSysConnectAudio(h, mx1p,   "out",   c1.kr0, "in" ); // ain -> sw
248
-
249
-
250
-  cmDspSysConnectAudio(h, c1.cmp, "out",   apf1,  "in" );   // cmp -> mix 0
251
-  cmDspSysConnectAudio(h, c1.cmp, "out",   apf3,  "in" );   // cmp -> mix 0
252
-  cmDspSysConnectAudio(h, apf1,  "out",   ao1p,   "in" );
253
-  cmDspSysConnectAudio(h, apf3,  "out",   ao3p,   "in" );
254
-
255
-  cmDspSysConnectAudio(h, c0.cmp, "out", afop, "in0" );    // comp -> audio_file_out
256
-  cmDspSysConnectAudio(h, c1.cmp, "out", afop, "in1" );
257
-
167
+  cmDspSysConnectAudio( h, ai0p,   "out", mi0p,   "in" );  //
168
+  cmDspSysConnectAudio( h, ai0p,   "out", c0.kr0, "in" );  // ain -> ch0.kr0
169
+  cmDspSysConnectAudio( h, ai0p,   "out", c0.kr1, "in" );  // ain -> ch0.kr1
170
+  cmDspSysConnectAudio( h, c0.cmp, "out", ao0p,   "in" );  // ch0.cmp -> aout
171
+  cmDspSysConnectAudio( h, c0.cmp, "out", afop,   "in0");  // ch0.cmp -> audio_file_out
172
+
173
+  cmDspSysConnectAudio( h, ai1p,   "out",   mi1p,   "in" );  //
174
+  cmDspSysConnectAudio( h, ai1p,   "out",   c1.kr0, "in" );  // ain -> ch1.kr0
175
+  cmDspSysConnectAudio( h, ai1p,   "out",   c1.kr1, "in" );  // ain -> ch1.kr1
176
+  cmDspSysConnectAudio( h, c1.cmp, "out",   ao1p,   "in" );  // ch1.cmp -> aout
177
+  cmDspSysConnectAudio( h, c1.cmp, "out",   afop,   "in1");  // ch1.cmp ->audio_file_out
178
+  
258 179
   //cmDspSysConnectAudio(h, ai0p, "out", afop, "in0" );    // comp -> audio_file_out
259 180
   //cmDspSysConnectAudio(h, ai1p, "out", afop, "in1" );
260 181
 
261
-  //cmDspSysConnectAudio(h, ai0p, "out", ao2p, "in" );     // direct through from input to 
262
-  //cmDspSysConnectAudio(h, ai1p, "out", ao3p, "in" );     //    output chs 2&3
263
-
264
-
182
+  //cmDspSysConnectAudio(h, ai0p, "out", ao0p, "in" );     // direct through from ain to aout
183
+  //cmDspSysConnectAudio(h, ai1p, "out", ao1p, "in" );     //    
265 184
 
266 185
 
267 186
   cmDspSysInstallCb( h, clrBtn, "sym",    amp, "cmd",   NULL ); // clear active meas.
@@ -331,32 +250,20 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
331 250
   cmDspSysInstallCb(h, mfpRt,"s-out-0",mfp,  "sel",   NULL );
332 251
 
333 252
   cmDspSysInstallCb(h, onb, "sym",     pts,   "on",    NULL );
334
-  //cmDspSysInstallCb(h, pts, "on",      wtRt,  "s-in",  NULL );
335
-  //cmDspSysInstallCb(h, wtRt,"s-out-0", wtp,   "cmd",   NULL );
336 253
   cmDspSysInstallCb(h, pts, "on",      modp,  "cmd",   NULL );
337
-  cmDspSysInstallCb(h, pts, "on",      modr,  "cmd",   NULL );
338
-  cmDspSysInstallCb(h, pts, "on",      rpp,   "cmd",   NULL );
339 254
   cmDspSysInstallCb(h, onb, "sym",     amCmd, "rewind",NULL );
340 255
   cmDspSysInstallCb(h, onb, "out",     c0.achan,"reset",  NULL );
341 256
   cmDspSysInstallCb(h, onb, "out",     c1.achan,"reset",  NULL );
342 257
 
343 258
   // stop connections
344
-  //cmDspSysInstallCb(h, wtp,  "done",offb,"in",  NULL ); // 'done' from WT simulates pressing Stop btn.
345 259
   cmDspSysInstallCb(h, tlp,  "mfn", pts, "off", NULL ); // Prevents WT start on new audio file from TL.
346 260
   cmDspSysInstallCb(h, offb, "sym", mfp, "sel", NULL ); 
347 261
   cmDspSysInstallCb(h, offb, "sym", pts, "off", NULL );
348
-  //cmDspSysInstallCb(h, pts,  "off", wtp, "cmd", NULL );
349 262
   cmDspSysInstallCb(h, pts,  "off", modp,"cmd", NULL );
350
-  cmDspSysInstallCb(h, pts,  "off", modr,"cmd", NULL );
351 263
   cmDspSysInstallCb(h, offb, "sym", mop, "reset", NULL );
352 264
   cmDspSysInstallCb(h, offb, "sym", mo2p, "reset", NULL );
353 265
 
354 266
 
355
-  // time-line to wave-table selection 
356
-  //cmDspSysInstallCb(h, tlp, "absi", wtp, "beg", NULL );  
357
-  //cmDspSysInstallCb(h, tlp, "aesi", wtp, "end", NULL );
358
-  //cmDspSysInstallCb(h, tlp, "afn",  wtp, "fn",  NULL );
359
-
360 267
   // time-line to MIDI file player selection
361 268
   cmDspSysInstallCb(h, tlp, "mbsi", mfp, "bsi",   NULL );
362 269
   cmDspSysInstallCb(h, tlp, "mesi", mfp, "esi",   NULL );
@@ -365,22 +272,8 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
365 272
   // score to score follower - to set initial search location
366 273
   cmDspSysInstallCb(h, scp, "sel",    sfp, "index",  NULL );
367 274
   cmDspSysInstallCb(h, scp, "sel",    modp,"reset", NULL );
368
-  cmDspSysInstallCb(h, scp, "sel",    modr,"reset", NULL );
369
-  cmDspSysInstallCb(h, scp, "sel",    rpp, "initIdx", NULL );
370 275
   cmDspSysInstallCb(h, scp, "sel",    prp, "in", NULL );
371 276
 
372
-  // NOTE: THIS IS A DUPLICATE OF THE scp.sel CONNECTIONS
373
-  /*
374
-    cmDspSysInstallCb(h, scLoc, "val",    sfp, "index",  NULL );
375
-    cmDspSysInstallCb(h, scLoc, "val",    modp,"reset", NULL );
376
-    cmDspSysInstallCb(h, scLoc, "val",    modr,"reset", NULL );
377
-    cmDspSysInstallCb(h, scLoc, "val",    rpp, "initIdx", NULL );
378
-    cmDspSysInstallCb(h, scLoc, "val",    prp, "in", NULL );
379
-  */
380
-
381
-  //cmDspSysInstallCb(h, reload,"out",  modp, "reload", NULL );
382
-
383
-
384 277
   // MIDI file player to score follower
385 278
   cmDspSysInstallCb(h, mfp,  "smpidx",  siRt, "f-in",NULL );
386 279
   cmDspSysInstallCb(h, siRt, "f-out-1", sfp,  "smpidx",NULL ); 
@@ -416,35 +309,14 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
416 309
   //cmDspSysInstallCb(h, mip, "status", sfp, "status", NULL );
417 310
 
418 311
   // score follower to recd_play,modulator and printers
419
-  //cmDspSysInstallCb(h, sfp, "out",     rpp,     "index", NULL );
420 312
   cmDspSysInstallCb(h, sfp, "out",     modp,    "index", NULL );
421
-  //cmDspSysInstallCb(h, sfp, "out",     modr,    "index", NULL );
422 313
   cmDspSysInstallCb(h, sfp, "recent",  prp,     "in",  NULL );  // report 'recent' but only act on 'max' loc index
423 314
 
424
-  //cmDspSysInstallCb(h, prtb, "sym", sfp, "cmd", NULL );
425
-  //cmDspSysInstallCb(h, qtb,  "sym", sfp, "cmd", NULL );
426
-
427
-
428
-  cmDspSysInstallCb(   h, lasecs, "val", rpp, "curla", NULL ); // recd/play control
429
-  cmDspSysInstallCb(   h, dbpsec, "val", rpp, "frate", NULL );
430
-
431 315
   cmDspSysInstallCb(h, igain0, "val", ai0p, "gain", NULL );   // input gain control
432 316
   cmDspSysInstallCb(h, igain1, "val", ai1p, "gain", NULL );
433
-  cmDspSysInstallCb(h, igain2, "val", ai2p, "gain", NULL );   // input gain control
434
-  cmDspSysInstallCb(h, igain3, "val", ai3p, "gain", NULL );
435
-
436
-  cmDspSysInstallCb(h, apfByp, "out", apf0, "bypass", NULL );   // APF bypass
437
-  cmDspSysInstallCb(h, apfByp, "out", apf1, "bypass", NULL );   // 
438
-  cmDspSysInstallCb(h, apfByp, "out", apf2, "bypass", NULL );   // 
439
-  cmDspSysInstallCb(h, apfByp, "out", apf3, "bypass", NULL );   // 
440
-
441 317
 
442 318
   cmDspSysInstallCb(h, ogain0, "val", ao0p, "gain", NULL );   // output gain control
443 319
   cmDspSysInstallCb(h, ogain1, "val", ao1p, "gain", NULL );
444
-  cmDspSysInstallCb(h, ogain2, "val", ao2p, "gain", NULL );
445
-  cmDspSysInstallCb(h, ogain3, "val", ao3p, "gain", NULL );
446
-
447
-
448 320
 
449 321
 
450 322
   return rc;

Notiek ielāde…
Atcelt
Saglabāt