mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-15 12:50:42 -07:00
The cpal Stream was created and play() called but then immediately dropped when play_to_device() returned. When a cpal Stream is dropped, audio output stops immediately. This caused silent playback. Fix: add a spin-wait loop that holds the Stream in scope until all samples have been consumed (or stop_flag is set).