More precise sample dropping code in Synchronizer.
Fix buggy signed/unsigned conversion in Synchronizer.