Audio comes out as static from the first menu sound (RTX 4050 Laptop, integration-main of #2057) #2209

Open
opened 2026-11-26 05:23:18 +00:00 by github-bot · 1 comment
Owner

@⁠iNaxxs on GitHub · 2026-11-25 09:49 UTC · original

What happens

On the integration-main branch of PR #2057 (f7e08e6), the title's audio
comes out as static. Not silence and not distortion of something
recognisable: noise, from the first sound in the menus onward. The menu UI
sounds and the intro both do it.

The decode path is reached: the log shows an Opus packet decoded just before
the title's movie starts, and no error around it. So something downstream of
the decode, or the format handed to the host, looks like the place to look
rather than the decoder failing outright.

I have not dumped anything yet. I can run with XCL_OPUS_WAV /
XCL_OPUS_DIR and attach what they produce if that is the useful next step:
tell me which and I will.

Machine

CPU AMD Ryzen 5 8645HS (Zen 4, 6 cores / 12 threads)
GPU NVIDIA GeForce RTX 4050 Laptop GPU, 6 GB, driver 616.56
WaveLaneCountMax 32
RAM 16 GB, page file 42 GiB
OS Windows 11 (build 26200)
Audio the laptop's own output (Bang & Olufsen, Realtek)
Toolchain rustc 1.100.0 x86_64-pc-windows-msvc, Windows SDK 10.0.26100.0, DXC 1.9.2602

How I ran it

$env:XCL_NETWORK = "0"
$env:XCL_DEVICE_TYPE = "lockhart"
$env:XCL_SPLIT_WAVE64 = "1"
.\target\release\xcl.exe run <game folder>

Context for every run

XCL_DEVICE_TYPE=lockhart was a wrong choice of mine and cost me several
runs: as Series S the title dies at frame ~594 having initialised none of its
own allocators (every pool and memory counter 0/0 in its own crash report, 0
script threads), with an exception 0x80000003 at
game_scarlett_master.exe+0xb18de7. As Series X (anaconda, the xcl.toml
default) the title initialises properly: real pool figures, 5 script threads,
TileHeap total 6236Mb, and it reaches the loading screens.

I also made XStore answer, which removed the two
XErrorReport 0x89240107 it logs when the store is unavailable: the crash did
not move at all, so XStore was not the cause of it either.

As Series X the wall on this machine is memory, not the title: video-memory
heap creation fails with E_OUTOFMEMORY during the load. I never got past the
loading screens, so everything below is from the menus and the load.

Menus hold 30.0 fps at 1920x1080.

**@⁠iNaxxs** on GitHub · 2026-11-25 09:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/2209) ## What happens On the `integration-main` branch of PR #2057 (`f7e08e6`), the title's audio comes out as static. Not silence and not distortion of something recognisable: noise, from the first sound in the menus onward. The menu UI sounds and the intro both do it. The decode path is reached: the log shows an Opus packet decoded just before the title's movie starts, and no error around it. So something downstream of the decode, or the format handed to the host, looks like the place to look rather than the decoder failing outright. I have not dumped anything yet. I can run with `XCL_OPUS_WAV` / `XCL_OPUS_DIR` and attach what they produce if that is the useful next step: tell me which and I will. ## Machine | | | |---|---| | CPU | AMD Ryzen 5 8645HS (Zen 4, 6 cores / 12 threads) | | GPU | NVIDIA GeForce RTX 4050 Laptop GPU, 6 GB, driver 616.56 | | | `WaveLaneCountMax` 32 | | RAM | 16 GB, page file 42 GiB | | OS | Windows 11 (build 26200) | | Audio | the laptop's own output (Bang & Olufsen, Realtek) | | Toolchain | rustc 1.100.0 `x86_64-pc-windows-msvc`, Windows SDK 10.0.26100.0, DXC 1.9.2602 | ## How I ran it ```powershell $env:XCL_NETWORK = "0" $env:XCL_DEVICE_TYPE = "lockhart" $env:XCL_SPLIT_WAVE64 = "1" .\target\release\xcl.exe run <game folder> ``` ## Context for every run `XCL_DEVICE_TYPE=lockhart` was a wrong choice of mine and cost me several runs: as Series S the title dies at frame ~594 having initialised none of its own allocators (every pool and memory counter 0/0 in its own crash report, 0 script threads), with an exception 0x80000003 at `game_scarlett_master.exe+0xb18de7`. As Series X (`anaconda`, the `xcl.toml` default) the title initialises properly: real pool figures, 5 script threads, `TileHeap total 6236Mb`, and it reaches the loading screens. I also made XStore answer, which removed the two `XErrorReport 0x89240107` it logs when the store is unavailable: the crash did not move at all, so XStore was not the cause of it either. As Series X the wall on this machine is memory, not the title: video-memory heap creation fails with `E_OUTOFMEMORY` during the load. I never got past the loading screens, so everything below is from the menus and the load. Menus hold 30.0 fps at 1920x1080.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:23:18 +00:00
Author
Owner

@⁠Chrysana on GitHub · 2026-11-25 14:45 UTC · original

Thanks for the detailed report. A few pointers from reading main (06c9f55) and from our own runs, which may save you a run or two.

The two switches don't dump what the title plays:

  • XCL_OPUS_DIR only tells XCL where to find a libopus opus.dll. XCL uses it only when Windows' own MSOpusDecoder.dll can't make a decoder (e.g. under Wine).
  • XCL_OPUS_WAV is read only by the unit test decodes_a_game_sound, which also needs XCL_SAMPLE_AWC (one Opus sound file from your copy of the game). It writes that one sound, decoded on your machine, to a WAV. That could still help: if the WAV is static too, the decoder on your Windows is the place to look.

Lines from your xcl.log that would narrow it down:

  • Opus: decoder = …: which decoder your machine ended up with
  • any XAudio2: CreateMasteringVoice … line: a retry with defaults, or a failure
  • xapu: decoder connected …

Why the intro matters. In our runs (RX 9070 XT, 2026-11-24) the intro's sound didn't go through XCL's Opus path: report.json's xapu counters stayed at the same 23 Opus packets whether the intro's sound played or not. It comes from the title's own mix. So if the intro is static for you too, the cause is more likely on the output side (the mastering voice or the audio device) than in the decoder. A quick check on that side: does it change with headphones or another output device, or with the device's default format (Sound settings → the device → Advanced) set to 16-bit, 48000 Hz?

What we hear here: the last time we listened (main with #300 and #451, both merged since), the intro played with clean sound. The only audio change on main since then is 6aba068 (#525, a cached XMA gain table whose test checks it is bit-identical). We haven't run #2057's branch; its diff against main doesn't touch xaudio2.rs, opus.rs or xma2.

AI use: Claude Code (Claude Opus 5.5) read the code and drafted this comment; I checked it before posting.

**@⁠Chrysana** on GitHub · 2026-11-25 14:45 UTC · [original](https://github.com/xcl-dev/xcl/issues/2209#issuecomment-7165771131) Thanks for the detailed report. A few pointers from reading `main` (`06c9f55`) and from our own runs, which may save you a run or two. **The two switches don't dump what the title plays:** - `XCL_OPUS_DIR` only tells XCL where to find a libopus `opus.dll`. XCL uses it only when Windows' own `MSOpusDecoder.dll` can't make a decoder (e.g. under Wine). - `XCL_OPUS_WAV` is read only by the unit test `decodes_a_game_sound`, which also needs `XCL_SAMPLE_AWC` (one Opus sound file from your copy of the game). It writes that one sound, decoded on your machine, to a WAV. That could still help: if the WAV is static too, the decoder on your Windows is the place to look. **Lines from your `xcl.log` that would narrow it down:** - `Opus: decoder = …`: which decoder your machine ended up with - any `XAudio2: CreateMasteringVoice …` line: a retry with defaults, or a failure - `xapu: decoder connected …` **Why the intro matters.** In our runs (RX 9070 XT, 2026-11-24) the intro's sound didn't go through XCL's Opus path: `report.json`'s xapu counters stayed at the same 23 Opus packets whether the intro's sound played or not. It comes from the title's own mix. So if the intro is static for you too, the cause is more likely on the output side (the mastering voice or the audio device) than in the decoder. A quick check on that side: does it change with headphones or another output device, or with the device's default format (Sound settings → the device → Advanced) set to 16-bit, 48000 Hz? **What we hear here:** the last time we listened (`main` with #300 and #451, both merged since), the intro played with clean sound. The only audio change on `main` since then is `6aba068` (#525, a cached XMA gain table whose test checks it is bit-identical). We haven't run #2057's branch; its diff against `main` doesn't touch `xaudio2.rs`, `opus.rs` or `xma2`. AI use: Claude Code (Claude Opus 5.5) read the code and drafted this comment; I checked it before posting.
This discussion has been locked. Commenting is limited to contributors.
No description provided.