From 802e3d9514f9c948d6accf9e90882ddc1935dad7 Mon Sep 17 00:00:00 2001 From: kpl Date: Wed, 16 Oct 2013 13:15:21 -0700 Subject: [PATCH] cmDspPgm.c : Added option to omit the wavetable player output in favor of the first audio input port in _cmDspSysPgm_Stereo_Through(). --- dsp/cmDspPgm.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/dsp/cmDspPgm.c b/dsp/cmDspPgm.c index 43fb10c..fe29ae7 100644 --- a/dsp/cmDspPgm.c +++ b/dsp/cmDspPgm.c @@ -103,10 +103,19 @@ cmDspRC_t _cmDspSysPgm_Stereo_Through( cmDspSysH_t h, void** userPtrPtr ) cmDspSysConnectAudio(h, ai0p, "out", im0p, "in"); //ain0 -> imtr0 cmDspSysConnectAudio(h, ai1p, "out", im1p, "in"); //ain1 -> imtr1 - cmDspSysInstallCb( h, hzp, "val", php, "mult", NULL); // hz -> phs - cmDspSysConnectAudio(h, php, "out", wtp, "phs" ); // phs -> wt - cmDspSysConnectAudio(h, wtp, "out", ao0p, "in" ); // wt -> aout0 - cmDspSysConnectAudio(h, wtp, "out", om0p, "in" ); // wt -> omtr0 + if(0) + { + cmDspSysInstallCb( h, hzp, "val", php, "mult", NULL); // hz -> phs + cmDspSysConnectAudio(h, php, "out", wtp, "phs" ); // phs -> wt + cmDspSysConnectAudio(h, wtp, "out", ao0p, "in" ); // wt -> aout0 + cmDspSysConnectAudio(h, wtp, "out", om0p, "in" ); // wt -> omtr0 + } + else + { + cmDspSysInstallCb( h, ignp,"val", ai0p, "gain", NULL); // igain -> ain0 + cmDspSysConnectAudio(h, ai0p,"out", ao0p, "in" ); // ain0 -> aout0 + cmDspSysConnectAudio(h, ai0p,"out", om0p, "in" ); // ain0 -> omtr0 + } cmDspSysInstallCb( h, ignp,"val", ai1p, "gain", NULL); // igain -> ain1 cmDspSysConnectAudio(h, ai1p,"out", ao1p, "in" ); // ain1 -> aout1