libSceNgs2: VAG and HE-VAG waveforms are not parsed or decoded, so Steins;Gate Re:Boot (PPSA36591) loses its game-start sound #5677
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 milescoviello on 2026-10-14T06:03:53Z.
Steins;Gate Re:Boot (PPSA36591) passes a VAG file to
sceNgs2ParseWaveformDatawhen a button is pressed at its title screen, and NGS2 returnsSCE_NGS2_ERROR_UNKNOWN_WAVEFORM_FORMAT(0x804A8432), becauseReadChunksaccepts onlyRIFF/WAVE. The title then sets up the voice with an all-zero format (the path #5660 stops from crashing), so the sound is not played.The data, read at the call (Linux,
main75690a117plus #5660):VAGpheader: version0x00020001, data size0x25540(152,896 bytes), sample rate 48000, byte0x1E= 2 (channels), namegamestart, frames from0x30.What supporting it needs:
sceNgs2ParseWaveformData(andParseWaveformFile) recognisingVAGp: waveform type0x1C(the value sharpemu uses), the big-endian size and rate, the channel byte, 16-byte units of 28 samples per channel.The open question is the HE-VAG table. The only public source I know is vgmstream's
psv_decoder.c(ISC-style license, so it can be used with its notice; vgmstream says it was reverse engineered from Sony's PC tools). CONTRIBUTING asks for third-party code as a submodule, and vgmstream is large for one table. Would a table copied with vgmstream's notice and a debt entry be acceptable, or is a submodule wanted? I can implement it either way.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T06:28:43Z.
I checked the repository guidance before taking this on:
CONTRIBUTING.mdsays new third-party code should be added as a submodule and built from source. The vgmstreamCOPYINGfile grants permission under ISC terms, but copying its HE-VAG table into the tree would still need to fit that project rule. I would treat a vgmstream submodule as the compliant route, or write an independent decoder only if the coefficient table can be sourced/generated without importing that third-party data. Is a focused vgmstream submodule acceptable here, or should we keep this issue open pending an independently sourced table? This affects whether a PR can deliver the actual HE-VAG playback rather than only recognize the VAGp header.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T13:31:54Z.
There is now a draft implementation in #5797 that follows the repository guidance by building the HE-VAG decoder from a pinned vgmstream submodule and including its license in release archives. It adds synthetic parser/renderer coverage but explicitly has not validated PPSA36591 playback; the author also records remaining cross-block and console-semantics questions. This addresses the submodule-versus-copy question with a compliant implementation route, while title playback remains unverified.