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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
1 parent
7e75a3be70
commit
d3594c924d
1 file changed
+5
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user