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
|
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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