2d array not populated correctly when using bitshift

I am writing the adcSamples to buff which is a long (32 bits) so that is not the problem sadly