cmDspPgm.c : Added option to omit the wavetable player output in favor
of the first audio input port in _cmDspSysPgm_Stereo_Through().
This commit is contained in:
parent
585b54c6d8
commit
802e3d9514
@ -103,10 +103,19 @@ cmDspRC_t _cmDspSysPgm_Stereo_Through( cmDspSysH_t h, void** userPtrPtr )
|
|||||||
cmDspSysConnectAudio(h, ai0p, "out", im0p, "in"); //ain0 -> imtr0
|
cmDspSysConnectAudio(h, ai0p, "out", im0p, "in"); //ain0 -> imtr0
|
||||||
cmDspSysConnectAudio(h, ai1p, "out", im1p, "in"); //ain1 -> imtr1
|
cmDspSysConnectAudio(h, ai1p, "out", im1p, "in"); //ain1 -> imtr1
|
||||||
|
|
||||||
|
if(0)
|
||||||
|
{
|
||||||
cmDspSysInstallCb( h, hzp, "val", php, "mult", NULL); // hz -> phs
|
cmDspSysInstallCb( h, hzp, "val", php, "mult", NULL); // hz -> phs
|
||||||
cmDspSysConnectAudio(h, php, "out", wtp, "phs" ); // phs -> wt
|
cmDspSysConnectAudio(h, php, "out", wtp, "phs" ); // phs -> wt
|
||||||
cmDspSysConnectAudio(h, wtp, "out", ao0p, "in" ); // wt -> aout0
|
cmDspSysConnectAudio(h, wtp, "out", ao0p, "in" ); // wt -> aout0
|
||||||
cmDspSysConnectAudio(h, wtp, "out", om0p, "in" ); // wt -> omtr0
|
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
|
cmDspSysInstallCb( h, ignp,"val", ai1p, "gain", NULL); // igain -> ain1
|
||||||
cmDspSysConnectAudio(h, ai1p,"out", ao1p, "in" ); // ain1 -> aout1
|
cmDspSysConnectAudio(h, ai1p,"out", ao1p, "in" ); // ain1 -> aout1
|
||||||
|
Loading…
Reference in New Issue
Block a user