Improved getJitterFreePTS(): instead of adding the duration of each buffer frame, add the number of samples. This way, rounding errors do not accumulate