Align punch in/out recording with latency-compensation