Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 7f16620

Browse files
committed
Add fixme for completely wrong code
1 parent fcb7714 commit 7f16620

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripty_stt/src/process_audio.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ pub fn process_audio(
1313
let src = if src_sample_rate != dst_sample_rate {
1414
// convert src into an iterator
1515
let mut source = from_iter(src.into_iter().map(|v| [v]));
16+
// FIXME: this is completely wrong:
17+
// the N in [i16; N] is the number of channels this should have,
18+
// so this whole time we've been mixing the left and right channels!
1619
let first: [i16; 1] = source.next();
1720
let second = source.next();
1821

0 commit comments

Comments
 (0)