From 1953a676acf2b79d3895516f6a98646219559eb1 Mon Sep 17 00:00:00 2001 From: Kevin Larke Date: Fri, 7 Aug 2015 13:24:55 -0700 Subject: [PATCH] cmDspPgm.c : Changed _cmDspSysPgm_ReflectCalc() to actually use cmReflectCalc. --- dsp/cmDspPgm.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dsp/cmDspPgm.c b/dsp/cmDspPgm.c index 904db83..9397504 100644 --- a/dsp/cmDspPgm.c +++ b/dsp/cmDspPgm.c @@ -34,6 +34,9 @@ cmDspRC_t _cmDspSysPgm_ReflectCalc( cmDspSysH_t h, void** userPtrPtr ) cmDspInst_t* ai0 = cmDspSysAllocInst(h,"AudioIn", NULL, 1, 0 ); cmDspInst_t* ai1 = cmDspSysAllocInst(h,"AudioIn", NULL, 1, 1 ); + cmDspInst_t* rc0 = cmDspSysAllocInst(h,"ReflectCalc", NULL, 0 ); + //cmDspInst_t* rc1 = cmDspSysAllocInst(h,"ReflectCalc", NULL, 0 ); + // audio outputs cmDspInst_t* ao0 = cmDspSysAllocInst(h,"AudioOut",NULL, 1, 0 ); cmDspInst_t* ao1 = cmDspSysAllocInst(h,"AudioOut",NULL, 1, 1 ); @@ -59,8 +62,12 @@ cmDspRC_t _cmDspSysPgm_ReflectCalc( cmDspSysH_t h, void** userPtrPtr ) cmDspSysInstallCb( h, ogain,"val", ao0, "gain", NULL); // igain -> ain0 cmDspSysInstallCb( h, ogain,"val", ao1, "gain", NULL); // igain -> ain0 - cmDspSysConnectAudio(h, ai0,"out", ao0, "in" ); // ain0 -> aout0 - cmDspSysConnectAudio(h, ai1,"out", ao1, "in" ); // ain1 -> aout1 + + cmDspSysConnectAudio(h, ai0,"out", rc0, "in" ); + cmDspSysConnectAudio(h, rc0,"out", ao0, "in" ); + + cmDspSysConnectAudio(h, ai1,"out", ao1, "in" ); + return kOkDspRC; }