Fix the synchronizer function to oversample and compress the correct
number of samples

Before, it used integer devision, resulting in undersampling and
overcompression when the clock rates were not integer divisible.