Audio: VICTORY_VOICE_LOG=<ms> logs each XMA voice's and Opus stream's decoded and taken samples, runtime areas asked again count up (diagnostics only) #1666

Manually merged
github merged 4 commits from github-bot/gh-1666 into main 2026-11-29 08:21:43 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-28 23:13 UTC · original
101Leafy:nv/voice-log → main · +122 −22 · 13 files · 4 commits · merged 2026-11-29 08:16 UTC

What it changes

Diagnostics builds only. VICTORY_VOICE_LOG=<ms> writes a line every ms milliseconds:

  • for each enabled XMA voice, the samples per channel decoded into its ring, the samples the title took, the context's read bit, and whether its input ended
  • for each active Opus stream, the frames decoded since it was activated

A voice that plays while these numbers stay still points at a clip driven by its play position, such as lip sync. Unset, nothing changes.

Runtime API areas that are not implemented still warn once. With diagnostics on, an area asked again also logs its count at 2, 4, 8, and so on, so one that rises with each line of dialogue stands out.

How it was tested

  • Tested on: RTX 5080 16 GB on Windows 10
  • Built with clippy only, not run in a game yet
  • Before: no way to see whether a voice is being drained while it plays
  • After: one line per voice and stream per interval when the variable is set
  • For shader changes, the wave sizes tested: not a shader change.
  • cargo clippy -p victory-hle --all-targets both with --features diagnostics and without it: no warnings in apu.rs, audio.rs, or xgameruntime.rs

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #1510 also touches apu.rs, audio.rs and xgameruntime.rs (API conformance, not logging); these lines sit apart from its changes.
**@⁠101Leafy** on GitHub · 2026-11-28 23:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1666) `101Leafy:nv/voice-log` → `main` · +122 −22 · 13 files · 4 commits · merged 2026-11-29 08:16 UTC ## What it changes Diagnostics builds only. `VICTORY_VOICE_LOG=<ms>` writes a line every `ms` milliseconds: - for each enabled XMA voice, the samples per channel decoded into its ring, the samples the title took, the context's read bit, and whether its input ended - for each active Opus stream, the frames decoded since it was activated A voice that plays while these numbers stay still points at a clip driven by its play position, such as lip sync. Unset, nothing changes. Runtime API areas that are not implemented still warn once. With diagnostics on, an area asked again also logs its count at 2, 4, 8, and so on, so one that rises with each line of dialogue stands out. ## How it was tested - Tested on: RTX 5080 16 GB on Windows 10 - Built with clippy only, not run in a game yet - Before: no way to see whether a voice is being drained while it plays - After: one line per voice and stream per interval when the variable is set - For shader changes, the wave sizes tested: not a shader change. - `cargo clippy -p victory-hle --all-targets` both with `--features diagnostics` and without it: no warnings in apu.rs, audio.rs, or xgameruntime.rs ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1510 also touches apu.rs, audio.rs and xgameruntime.rs (API conformance, not logging); these lines sit apart from its changes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:13:39 +00:00
github-bot force-pushed github-bot/gh-1666 from 2a868f904b to 6cc2744bb5 2026-11-29 01:46:24 +00:00 Compare
github manually merged commit 35a479cb68 into main 2026-11-29 08:21:43 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1666
No description provided.