feat(ngs2): decode complete HE-VAG waveform blocks #5797
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5797"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by mohdfaour03 on 2026-10-14T11:28:11Z.
What
Add complete-block HE-VAG support to both NGS2 libraries, targeting the missing game-start audio reported for Steins;Gate Re:Boot (PPSA36591) in #5677. VAGp waveform parsing now recognizes HE-VAG headers, and the sampler decodes interleaved channels into PCM for the existing renderer, including sample skips and block repeats.
Build vgmstream's HE-VAG decoder from a pinned submodule and include its license in release archives. Unsupported embedded loops, streaming append, and nonzero codec configuration throw. The library debt document records the remaining format and runtime limitations.
This is a draft pending actual-title playback validation. Tests use synthetic audio; I have not run PPSA36591 and am not claiming that the title is fixed. Complete submitted blocks are decoded eagerly, with decoder history retained within each block and reset between blocks. Console rounding, byte-position semantics, and cross-block continuation still need validation.
Tested
Windows, GCC 15.2, Release, full-build CMake configuration with BUILD_TESTING enabled:
ngs2_CTest tests passed, including the new HE-VAG parser and renderer regression test.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T13:31:52Z.
I checked the eligibility failure log: this run stopped on a GitHub API 503 while fetching PR #5797, so it does not report a source or mergeability failure. A rerun should clarify eligibility. The overlap bot also flags #5835 because both branches edit
.gitmodules; they appear to add separate submodules, so the conflict is file-level and whichever merges second may need a rebase.Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-14T19:44:47Z.
A run of PPSA36591 with this branch, since the description asks for one: Steins;Gate Re:Boot 01.002.000, relinked with
--to-intel, on Linux (Ubuntu 24.04, GCC 13.3, Release). The build ismain358e218a4with this head (837e1b32a) merged, plus #5660, without which the title's empty waveform blocks fail before it gets this far, and a temporary log inNgs2ParseHevagandNgs2DecodeHevagthat is not part of either PR.In 150 s, going from the title screen into the menus with pad input, the title submits 22 HE-VAG waveforms, all VAGp version 0x20001 at 48 kHz, in four distinct shapes:
Every one parses and decodes to non-silent PCM, and none reaches the alternate-header, embedded-loop or invalid-frame throws. The run lasted the full 150 s with no NGS2 error. I can't say from this whether the output matches the console sample for sample, only that the title's waveforms take the complete-block path and decode.
AI-assisted: yes
Pull request closed