From 619506656dda2d28a7c75777af9946127a51888c Mon Sep 17 00:00:00 2001 From: geens Date: Wed, 20 Aug 2025 11:48:43 +0200 Subject: [PATCH] Fixed sync offset for post_record_handler --- audio_engine/src/post_record_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); }