adxenc: use a loop to encode each channel