Quellcode durchsuchen

cmDspPgm.c : Changed _cmDspSysPgm_ReflectCalc() to actually use cmReflectCalc.

master
Kevin Larke vor 8 Jahren
Ursprung
Commit
1953a676ac
1 geänderte Dateien mit 9 neuen und 2 gelöschten Zeilen
  1. 9
    2
      dsp/cmDspPgm.c

+ 9
- 2
dsp/cmDspPgm.c Datei anzeigen

@@ -34,6 +34,9 @@ cmDspRC_t _cmDspSysPgm_ReflectCalc( cmDspSysH_t h, void** userPtrPtr )
34 34
   cmDspInst_t* ai0  = cmDspSysAllocInst(h,"AudioIn", NULL,   1, 0 );
35 35
   cmDspInst_t* ai1  = cmDspSysAllocInst(h,"AudioIn", NULL,   1, 1 );
36 36
 
37
+  cmDspInst_t* rc0   = cmDspSysAllocInst(h,"ReflectCalc", NULL, 0 );
38
+  //cmDspInst_t* rc1   = cmDspSysAllocInst(h,"ReflectCalc", NULL, 0 );
39
+  
37 40
   // audio outputs
38 41
   cmDspInst_t* ao0 = cmDspSysAllocInst(h,"AudioOut",NULL,   1, 0 );
39 42
   cmDspInst_t* ao1 = cmDspSysAllocInst(h,"AudioOut",NULL,   1, 1 );
@@ -59,8 +62,12 @@ cmDspRC_t _cmDspSysPgm_ReflectCalc( cmDspSysH_t h, void** userPtrPtr )
59 62
   cmDspSysInstallCb(   h, ogain,"val", ao0, "gain", NULL);  // igain -> ain0
60 63
   cmDspSysInstallCb(   h, ogain,"val", ao1, "gain", NULL);  // igain -> ain0
61 64
   
62
-  cmDspSysConnectAudio(h, ai0,"out", ao0, "in" );           // ain0  -> aout0 
63
-  cmDspSysConnectAudio(h, ai1,"out", ao1, "in" );           // ain1  -> aout1 
65
+
66
+  cmDspSysConnectAudio(h, ai0,"out", rc0, "in" );  
67
+  cmDspSysConnectAudio(h, rc0,"out", ao0, "in" );
68
+  
69
+  cmDspSysConnectAudio(h, ai1,"out", ao1, "in" );
70
+  
64 71
   return kOkDspRC;
65 72
 }
66 73
 

Laden…
Abbrechen
Speichern