[fix](trx-frontend-http): satisfy audio copyTo arguments

Co-authored-by: OpenAI Codex <codex@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-02-28 22:28:35 +01:00
parent 85ad204974
commit 3a75b7ac5b
@@ -2684,7 +2684,7 @@ function extractAudioFrameChannels(frame) {
if (!isPlanar) {
const interleaved = new Float32Array(frames * channels);
frame.copyTo(interleaved);
frame.copyTo(interleaved, { planeIndex: 0 });
const out = Array.from({ length: channels }, () => new Float32Array(frames));
for (let i = 0; i < frames; i++) {
for (let ch = 0; ch < channels; ch++) {