Fixed sync offset for post_record_handler
This commit is contained in:
parent
9b0d6d0e8c
commit
619506656d
@ -173,7 +173,7 @@ impl PostRecordHandler {
|
|||||||
|
|
||||||
// For each output position, calculate which input position to take from
|
// For each output position, calculate which input position to take from
|
||||||
for i in 0..total_length {
|
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]);
|
reordered.push(all_samples[source_index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user