synesthesiam / homeassistant-satellite

Streaming audio satellite for Home Assistant
MIT License
188 stars 23 forks source link

Terminate if pulseaudio recording fails #62

Open chatziko opened 1 year ago

chatziko commented 1 year ago

53 fixed the issue that pulseaudio recording got stuck when is_running is false.

But a similar issue remains: if pulseaudio recording itself breaks (eg pulseaudio is restarted), record_pulseaudio waits for chunks that never arrive. This PR fixes this, a chunk with ts == 0 signals record_pulseaudio to exit, and also mic_task_entry fails if recording stops while still running.