fix(client): fix smart speed seek race conditions and network buffering stall bugs

This commit is contained in:
Jonathan Baldie 2026-05-01 22:47:42 +01:00
parent 902d2448e1
commit 42a1a82e8a
2 changed files with 24 additions and 0 deletions

View file

@ -16,6 +16,11 @@ class SilenceDetectorProcessor extends AudioWorkletProcessor {
this.port.onmessage = (event) => {
const msg = event.data
if (msg.type === 'reset') {
this.state = SPEAKING
this.candidateStartSample = 0
return
}
if (msg.type === 'set-threshold') {
this.silenceThreshold = msg.value
}