audio_wav: fall back to decoder timing across Ogg sequence gaps #2460

Open
github-bot wants to merge 1 commit from github-bot/gh-2460 into main AGit
Owner

@⁠kirigayakazima on GitHub · 2026-11-27 11:09 UTC · original
kirigayakazima:codex/audio-wav-discontinuous-page-timing → main · +21 −5 · 2 files · 1 commits · open

Claimed in the coordination issue as: AUDIO-WAV-DISCONTINUOUS-PAGE-TIMING

What and why

Only derive a WAV trim length from the final Ogg granule when the page numbers advance consecutively within the stream. On gaps and repeated numbers, return the existing decoder-timing fallback. Cover a valid stream, missing and repeated page numbers, and 32-bit rollover. The page sequence field is described in RFC 3533, section 6.

Tested

Windows, Python 3.14.7. The added regression failed on the parent and passed with this change.

  • python -I tests/test_audio_wav.py
  • Changed-path game-data scan and git diff --check passed. Shared main baseline: 6,374 semantic tests passed across 500 files.

GPUs tested: N/A (CPU-only).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.
**@⁠kirigayakazima** on GitHub · 2026-11-27 11:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2460) `kirigayakazima:codex/audio-wav-discontinuous-page-timing` → `main` · +21 −5 · 2 files · 1 commits · open Claimed in the coordination issue as: [AUDIO-WAV-DISCONTINUOUS-PAGE-TIMING](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why Only derive a WAV trim length from the final Ogg granule when the page numbers advance consecutively within the stream. On gaps and repeated numbers, return the existing decoder-timing fallback. Cover a valid stream, missing and repeated page numbers, and 32-bit rollover. The page sequence field is described in [RFC 3533, section 6](https://www.rfc-editor.org/rfc/rfc3533#section-6). ### Tested Windows, Python 3.14.7. The added regression failed on the parent and passed with this change. - `python -I tests/test_audio_wav.py` - Changed-path game-data scan and `git diff --check` passed. Shared main baseline: 6,374 semantic tests passed across 500 files. GPUs tested: N/A (CPU-only). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract table: N/A.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 11:11:00 +00:00
Author
Owner

@⁠MSedgeMC on GitHub · 2026-11-27 14:48 UTC · original · reviewed

Verified on the PR branch: python3 -m unittest tests.test_audio_wav -v -> 44 tests OK (4 skips), including the new decoder-timing fallback cases for Ogg sequence gaps. Not approving yet: the branch is 613 commits behind current main, so a merge would bring in unrelated history. Please rebase and re-run the suite.

**@⁠MSedgeMC** on GitHub · 2026-11-27 14:48 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2460#pullrequestreview-6089881490) · **reviewed** Verified on the PR branch: python3 -m unittest tests.test_audio_wav -v -> 44 tests OK (4 skips), including the new decoder-timing fallback cases for Ogg sequence gaps. Not approving yet: the branch is 613 commits behind current main, so a merge would bring in unrelated history. Please rebase and re-run the suite.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2460/head:github-bot/gh-2460'
git switch 'github-bot/gh-2460'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2460'
git switch 'github-bot/gh-2460'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2460'
git switch 'github-bot/gh-2460'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2460'
git switch 'main'
git merge --squash 'github-bot/gh-2460'
git switch 'main'
git merge --ff-only 'github-bot/gh-2460'
git switch 'main'
git merge 'github-bot/gh-2460'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.