added support for 1 byte for nrValidSamples