changes to the processing code depending on whether the DMA buffer was used