Thanks and sorry if my inital post was not very clear.
mCircularBuffers
is a 2d array , so its an array where the first index represent the channel number and the second index represents the array for that channel.
mCircularBuffers[channel][mCircularBufferWriteHead]
So my implementation is targeted at multiple channels.And while the delay works on all channels, I can hear a crackling sound in the output. Can you please suggest what could be causing the crackling sound in the output