[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:
@@ -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 ------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user