mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-25 12:51:31 +00:00
fix(client): fix smart speed seek race conditions and network buffering stall bugs
This commit is contained in:
parent
902d2448e1
commit
42a1a82e8a
2 changed files with 24 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue