Update of /cvsroot/pure-data/externals/grill/vst/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15407/src
Modified Files: main.cpp Log Message: ""
Index: main.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/vst/src/main.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** main.cpp 23 Aug 2004 02:42:16 -0000 1.16 --- main.cpp 24 Aug 2004 02:44:38 -0000 1.17 *************** *** 20,24 ****
! #define VST_VERSION "0.1.0pre13"
--- 20,24 ----
! #define VST_VERSION "0.1.0pre14"
*************** *** 474,479 **** int i,mx = CntInSig(); if(mx > CntOutSig()) mx = CntOutSig(); ! for(i = 0; i < mx; ++i) ! CopySamples(outsigs[i],insigs[i],n); for(; i < CntOutSig(); ++i) ZeroSamples(outsigs[i],n); --- 474,498 ---- int i,mx = CntInSig(); if(mx > CntOutSig()) mx = CntOutSig(); ! if(mx == 1) { ! CopySamples(outsigs[0],insigs[0],n); ! i = 1; ! } ! else if(mx == 2) { ! R *o1 = outsigs[0],*o2 = outsigs[1]; ! const R *i1 = insigs[0],*i2 = insigs[1]; ! for(int s = 0; s < n; ++s) { ! const R f = *(i1++); ! *(o2++) = *(i2++); ! *(o1++) = f; ! } ! i = 2; ! } ! else ! for(i = 0; i < mx; ++i) { ! // must copy via temporary buffer as ordering of output signals can collide with input signals ! CopySamples(tmpin[i],insigs[i],n); ! CopySamples(outsigs[i],tmpin[i],n); ! } ! for(; i < CntOutSig(); ++i) ZeroSamples(outsigs[i],n);