[fix](trx-backend-soapysdr): emit proper stereo pcm frames

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-02-28 22:07:34 +01:00
parent df1bbf8f5b
commit b6053729a4
@@ -674,7 +674,16 @@ impl ChannelDsp {
} }
*s = self.audio_agc.process(*s); *s = self.audio_agc.process(*s);
} }
raw if self.output_channels >= 2 {
let mut stereo = Vec::with_capacity(raw.len() * self.output_channels);
for sample in raw {
stereo.push(sample);
stereo.push(sample);
}
stereo
} else {
raw
}
}; };
// --- 5. Emit complete PCM frames ------------------------------------ // --- 5. Emit complete PCM frames ------------------------------------