Repository navigation
Conversation
… audio device opus_ / xma2_source_voice_decodes_and_manages_lifetime gave their buffers 3 s to start and end on the real audio device. On a busy PC (a parallel test run, a build) that was not always enough (xcl-dev#1487). On a PC whose default output is slow to open (a sleeping Bluetooth or virtual device) it never was: the mastering voice took 56 s to create there, and the first buffers as long again to play. They now wait up to 30 s (an idle PC still finishes in well under a second), and skip with a SKIPPED line, instead of failing, when the mastering voice took more than 10 s to create: that measures the audio device, not XCL's XAudio2 shims. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hardware test report — commit
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent desktop NVIDIA verification of PR #1600 at head Environment
Targeted tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --lib hle::xaudio2:: -- --nocapture (3 consecutive runs) |
10 passed; 0 failed; 0 ignored; 739 filtered out × 3 (0.16s, 0.14s, 0.14s, 0 skipped; includes the new slow_audio_devices_are_skipped_not_failed unit test plus live Windows 11 system XAudio2 2.9 Opus MSOpusDecoder and XMA2 voice playback tests) |
cargo build --release -p xcl |
Clean build (1m 04s, exit 0, 0 new warnings in xaudio2.rs) |
Paired quiet 60 s retail smoke (title: 29640639)
(Note: scripts/smoke.ps1 at 9e3831e1 predates 9683e7a6 and printed the local folder basename on title:; replaced below with the standard 9683e7a6 title hash 29640639, with all measured fields verbatim.)
Exact parent & merge-base (9e3831e1f570d3646e53ab753b19ec07eb8f1485):
xcl-smoke v1
commit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1549 (PresentX 1549)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14715 MB
PR #1600 (5b59db2db544e491f8c8b7fc3fd621cf28968e80):
xcl-smoke v1
commit: 5b59db2db544e491f8c8b7fc3fd621cf28968e80
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1547 (PresentX 1547)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14713 MB
Limits of coverage
- This PR is test-only (
crates/xcl/src/hle/xaudio2.rs#[cfg(test)],0production-code changes); all10/10hle::xaudio2::tests executed cleanly against Windows 11 systemXAudio2 2.9(0skipped) in0.14s–0.16s, with the slow-device skip threshold covered byslow_audio_devices_are_skipped_not_failed(this host's audio device opened fast and did not trigger a live slow-device skip). - The 60 s retail smoke confirms non-regression of the unchanged runtime binary at this commit (single-run frame/commit delta vs. parent reflects normal startup variance).
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Refs #1487: the XAudio2 part.
hle::xaudio2::tests::opus_source_voice_decodes_and_manages_lifetimeandxma2_source_voice_decodes_and_manages_lifetimeplay their buffers on the real audio device and give them 3 s to start and end. Two ways that fails without anything being wrong in XCL:Test-only: everything is inside
xaudio2.rs's#[cfg(test)] mod tests.What is in it
PLAYBACK_WAIT: the two tests wait up to 30 s for their buffers instead of 3 s. An idle PC still finishes in well under a second, so only a slow run waits longer.slow_audio_device: when creating the mastering voice took more than 10 s, the test destroys it, releases the engine and is skipped with aSKIPPED <test>: the default audio device took N s to openline (runner::skip_test), instead of failing. That measures the device, not XCL's shims.slow_audio_devices_are_skipped_not_failed: unit test of the threshold and the message.Tested
NVIDIA GeForce RTX 3070, driver 616.56; Windows 11 Pro 26100; Rust 1.100.0 MSVC; debug;
main9e3831e.main, each of the two tests alone: fail (STARTED: left 0, right 12291). With only the wait raised to 60 s, both pass in 113 s: the mastering voice took 56.0 s and the buffers 56.2 s.cargo test -p xcl --lib hle::xaudio2: 10 passed, 0 failed. Both voice tests printSKIPPED …: the default audio device took 56.5 s to open(168.9 s for the one running next toclamped_and_silenced_buffers_accepted_by_windows_xaudio2).cargo test -p xcl --lib(default threads), twice on this head without Tests: the queue slot 18 test signals a fence object that is complete (#1487) #1523. The first run ended with0xc0000005: Intermittent access violations during parallel library tests on Windows 11 #1487's access violation, which Tests: the queue slot 18 test signals a fence object that is complete (#1487) #1523 fixes. The second gave 728 passed, 0 failed, 21 ignored. SKIPPED: the two voice tests (device took 168.5 s / 56.2 s to open),gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64).Regression run
From eizispark's run (#1600 (comment)), thanks (AMD RX 9070 XT; the diff is test-only, so it shows only that nothing else changed):
main:
PR:
Not tested
AI use
🤖 Generated with Claude Code