fix: fix f32 -> f32_panel to fit firefox AudioData::copyTo

This commit is contained in:
2025-03-27 03:19:54 +08:00
parent ee4eee473d
commit 9654779f82
2 changed files with 2 additions and 1 deletions

View File

@@ -208,6 +208,7 @@ export class VideoPipelineDemo extends LitElement {
for (let channel = 0; channel < numberOfChannels; channel++) {
const channelData = new Float32Array(numberOfFrames);
audioFrame.copyTo(channelData, {
format: 'f32-planar',
planeIndex: channel,
frameCount: numberOfFrames,
});