Repository navigation
feat(ajm): decode ATRAC9 vibration streams - #6721
Conversation
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Reviewed the overlap warning. #6051’s production/test changes combine cleanly with this decoder; only the additive debt insertion needs both entries retained. All five affected Linux checks pass on the combined head, including its handle-lifetime regression. #6044 is a test relocation/label change; the new vibration fixture should follow its media directory and registration helper when combining. The shared vgmstream pin and release-license handling with #5797 remain documented in the description. None is a runtime prerequisite for this PR. I added exact combined source and a separate Windows backend portability probe: the pinned C decoder builds with MinGW, and nine synthetic cases under Wine match Linux PCM16 hashes. This does not claim a full Windows AJM DLL build or native Windows validation. Details, source and limits are now in the PR description. |
8303250 to
bc3aed5
Compare
bc3aed5 to
e7ebd9d
Compare
Attribute inherited Celegans Windows results and JJenkx PR boykopovar#6721; document exact tested runtime, focused validation, cache state and unverified gameplay. Documentation only; no runtime change. AI-assisted: yes.
|
Picking this up for our testing: it addresses the stop we see in PPSA26344 on current main, one of the titles we're bringing up, and we'd like to move it into main. We'll review, test and merge it under the normal process. Your comments and review are still very welcome, @adriadam10. |
|
@oneandonlydean, since you are picking this up: one thing this thread does not have yet. On my install of Ghost of Yōtei (PPSA26344), which has only Bisect. I bisected the first-parent merges between Three arms on the same tree, one run each, 600 s limit:
I did not review #7726 itself. These runs only show that its chunk list lets this install reach the config this PR decodes. Setup: Release build, Linux (CachyOS, kernel 7.2.9), Not checked: plain main without the local commits; runs without AI-assisted: yes |
|
@Dextroid17 thanks, this is useful, and the bisect explains why installs differ. Since #7726, a scenario-only install like yours opens This is merged now. @JJenkx, thank you for the decoder and the Windows probe. |
What
Decode ATRAC9 vibration streams in AJM. Ghost of Yōtei PPSA26344 02.002.000 passes configuration
fe 7e 03 f0(channel index 7); the existing decoder rejects it, and the game then divides by zero in audio setup. The new path parses and decodes vibration mono (6) and dual mono (7) using vgmstream's pinned V3 decoder. Ordinary ATRAC9 and discrete multichannel streams keep their existing LibAtrac9 path. Reset, partial-input handling, gapless/sample accounting and PCM16/PCM32/float output use the existing AJM job pipeline.Semantics come from the pinned channel table and decoder and vibration block reader. Build only the two decoder sources from a submodule; release archives include its license. Console PCM rounding and physical controller haptics remain unverified and are recorded in debt.
Tested
Latest rebase:
e7ebd9df1eb3d4ca94d7de1655605407fa784c59on upstream16c607a9373654e1e87c1a809845b1257f6acfed. Three linear commits, no merge commits. The only stopped conflict was additivedocs/dev/debt/libSceAjm.native.mdafter the instance-slot exhaustion entry landed; both entries are retained. Range-diff confirms decoder and test behavior unchanged. Fulllibsand all five AJM test executables build; 5/5 affected checks pass, no skips (1.46 s). Packaging: 28 run, 4 platform-specific skips, no failures. Conventions againstorigin/mainand whitespace pass. Local Linux validation only; no new native title or Windows run. Rebase validation summary.Arch Linux 7.2.9, GCC 16.2.1, Ryzen 9 7950X:
5d9dcc42dplus this change, all five affected checks pass:guest_ajm,guest_ajm_vibration,guest_ajm_teardown,atrac9_config_data,atrac9_gradient.af6f2c37a578renders the PlayStation intro, reaches a loading spinner and closes normally (exit 0, 152.69 seconds, 698 presentations). A single-library negative control, rebuilding only AJM from exact main source with the same build configuration, then loading it against those same graphics libraries, restores native exit 136 after 28.59 seconds. This is not a separate complete main build. Actual library mappings were verified and the temporary kernel limit was restored in both runs.0b8281d50a251: PlayStation intro and loading spinner; normal close, exit 0 after 153.91 seconds, 768 presentations. No inputs or skipped work. The temporary kernel limit was restored.e60dd9d5a) on validation head8476d4030841, all five affected Linux checks pass, including its handle-wrap/decoder-lifetime regression and this PR’s vibration fixtures. Source and tests merge cleanly; both additive debt entries were retained. Exact combined source.Run summaries and limits. Exact combined source.
No gameplay, audio-quality, physical-haptics or performance-gain claim. Native validation includes other open changes; their individual necessity has not been isolated. Full Windows/macOS AJM builds have not been run locally; the standalone Windows decoder probe is described above.
Overlap
#5797 adds the same
3rdparty/vgmstreampath, URL and exact pin for HE-VAG, a separate decoder. Keep that shared dependency once. Both PRs add release-license packaging: when the second merges, combine the consumer condition for AJM and NGS2 and retain a single license entry. There is no decoder-code dependency on #5797. Proposed order: this verified startup fix first, then its additional NGS2 consumer. The new ATRAC9 vibration implementation was not present in the open PR search.#6051 changes instance-ID allocation, independently of vibration decoding. The only conflict when combining it here is the debt-file insertion; keep both entries. Its live-handle regression and this PR’s checks pass together as documented above. No dependency on #6051.
#6044 (
5fa62e596) relocates existing AJM tests totests/media/and changes registrations toadd_library_test(media ...); it does not change their decoder behavior. When combining, move/registerGuestAjmVibration.cppconsistently with that organization and retain the decoder target/link changes. No runtime dependency on #6044.I inspected the archived shared
.gitmodulesand packaging hunks in the older branches listed as not comparable by the bot: they do not add this vibration decoder or the vgmstream path/license. This is a scoped metadata review, not a claim that every old integration branch merges with this PR.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository