From d3594c924d04cf4ac68475657d3e16aaebfee007 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 28 Sep 2026 19:36:38 +0000 Subject: [PATCH] voelin-core: live media test checks the mixed audio goes out ts6_test_pattern_decoded checked only the decoded video. It now also checks that the streamer sent at least 50 Opus frames of the mixed test tone while the viewer decoded, and that no audio source reported an error. Passes against the TeamSpeak 6 dev server (VOELIN_LIVE=1). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G --- crates/voelin-core/tests/media_live.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/voelin-core/tests/media_live.rs b/crates/voelin-core/tests/media_live.rs index a4519db..3226768 100644 --- a/crates/voelin-core/tests/media_live.rs +++ b/crates/voelin-core/tests/media_live.rs @@ -159,7 +159,11 @@ async fn ts6_test_pattern_decoded() { assert!(widths.iter().all(|w| (120..=136).contains(w)), "{widths:?}"); let stats = viewer.stats(); assert!(stats.error.is_none(), "{stats:?}"); - eprintln!("decoded {stats:?}, sent {:?}", streamer.stats()); + // The mixed test tone went out as 20 ms Opus frames all along. + let sent = streamer.stats(); + eprintln!("decoded {stats:?}, sent {sent:?}"); + assert!(sent.audio_frames >= 50, "{sent:?}"); + assert!(sent.audio_sources.iter().all(|s| s.error.is_none()), "{sent:?}"); engine.send(Command::StopStream { session: 1 }); wait_for(&mut events, "stream ended", |e| match e {