general purpose circular delay buffer for JS TypedArrays