[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:
@@ -2684,7 +2684,7 @@ function extractAudioFrameChannels(frame) {
|
|||||||
|
|
||||||
if (!isPlanar) {
|
if (!isPlanar) {
|
||||||
const interleaved = new Float32Array(frames * channels);
|
const interleaved = new Float32Array(frames * channels);
|
||||||
frame.copyTo(interleaved);
|
frame.copyTo(interleaved, { planeIndex: 0 });
|
||||||
const out = Array.from({ length: channels }, () => new Float32Array(frames));
|
const out = Array.from({ length: channels }, () => new Float32Array(frames));
|
||||||
for (let i = 0; i < frames; i++) {
|
for (let i = 0; i < frames; i++) {
|
||||||
for (let ch = 0; ch < channels; ch++) {
|
for (let ch = 0; ch < channels; ch++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user