Hi, I am working on a reverb plugin which sums all the input channels before processing them. I am wondering what the the most efficient method is for summing a variable number of input channels.
The two ways I could think of are having a separate buffer array the size of the input which is used for summing (I need to keep the original input buffer samples intact for wet dry mix) or to do a for loop which sums the buffers sample by sample. Both of these seem a little inefficient.
Can anyone recommend a solution?