Fixed rounding issue with FromSamples