diff --git a/audio_engine/src/post_record_handler.rs b/audio_engine/src/post_record_handler.rs index 6665abe..5557bb5 100644 --- a/audio_engine/src/post_record_handler.rs +++ b/audio_engine/src/post_record_handler.rs @@ -173,7 +173,7 @@ impl PostRecordHandler { // For each output position, calculate which input position to take from for i in 0..total_length { - let source_index = (i + sync_offset) % total_length; + let source_index = (i + total_length - sync_offset) % total_length; reordered.push(all_samples[source_index]); }