Since help and error messages suggest, that 8192 samples is a valid buffer size, this fixes the value in the check to 8192 instead of 8182.