paynejacob / speakerbob

Apache License 2.0
2 stars 0 forks source link

Sounds are cutting off in the last 0.5 seconds when another is queued #42

Closed jmpodhradsky closed 3 years ago

jmpodhradsky commented 3 years ago

I've noticed that sounds are cutting off in the last milliseconds after they are played, particularly when there's another sound queued up afterwards

To Reproduce Steps to reproduce the behavior:

  1. Go to speakerbob
  2. search for 'red alert' and play it
  3. search for 'tim allen' and play/queue it while 'red alert' is playing
  4. note how 'red alert' is cut off at the end.
paynejacob commented 3 years ago

This is probably due to the variable network latency getting the audio and the ws message coming in. The FE should implement a queue and block until playback of the current sound completes.