diff --git a/cwFlowProc.cpp b/cwFlowProc.cpp index 6d60318..6dac2e6 100644 --- a/cwFlowProc.cpp +++ b/cwFlowProc.cpp @@ -334,7 +334,7 @@ namespace cw { unsigned chN = std::min(inst->ext_dev->u.a.abuf->chN, src_abuf->chN); unsigned frameN = std::min(inst->ext_dev->u.a.abuf->frameN, src_abuf->frameN); - unsigned n = chN * frameN; + unsigned n = chN * frameN; for(unsigned i=0; iext_dev->u.a.abuf->buf[i] += src_abuf->buf[i]; @@ -1074,6 +1074,8 @@ namespace cw else { // TODO: check srate and frameN are same as first src + assert( abuf->frameN == frameN ); + assert( abuf->srate == srate ); } inst->srcN += 1; @@ -1081,8 +1083,6 @@ namespace cw } - //outChN = abuf0->chN + abuf1->chN; - // register the gain for(unsigned i=0; i