fix: 修复 AudioWorklet 未收到 start 指令导致无音频数据发送

This commit is contained in:
2026-03-01 04:13:10 +08:00
parent 9420d43392
commit e1c1b2d9b2

View File

@@ -196,6 +196,7 @@
} }
}; };
source.connect(worklet); source.connect(worklet);
worklet.port.postMessage({ command: "start" });
// Don't connect worklet to destination (no playback) // Don't connect worklet to destination (no playback)
state.workletNode = worklet; state.workletNode = worklet;
state.recording = true; state.recording = true;