Files
moonwell-client-core/crates
Sam Sung dbc37d62e4 Sound tests wait for the tap writers and the decode ring, not a sleep (#3037)
Two sound tests waited a fixed time for another thread's work, which a loaded machine can outlast.

The probe self-test slept 900 ms for the tap writers to finish their WAVs. `mix_tap::install_at` now returns each writer's thread with its frame clock, `MainChain` carries them, and the test joins them after dropping the manager: each writer drains, patches its header and ends once its tap is gone. A live run still detaches them.

The streamed-loop test slept 200 ms for kira's decode ring. kira zero-fills a whole 128-frame chunk without advancing while that ring is short, so the test now renders chunk by chunk, skips all-silent chunks, and asserts on two and a half loops of sound. A loop that stops at its end fails at a 120 s hang bound.

Fixes #3034

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:47:14 +07:00
..