feat(ngs2): implement geometry parameter resets #1875

Closed
Albaloola wants to merge 1 commit from upstream-pr/1875 into main
Albaloola commented 2026-10-08 22:37:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Albaloola on 2026-10-08T22:37:56Z.


What

Implement the listener and source parameter reset exports in both NGS2 aliases. Correct the placeholder structures to the public 60-byte listener and 108-byte source layouts, write the complete defaults, and clear reserved fields. Geometry calculation and spatialization remain unimplemented.

ABI evidence: SharpProspero and KytyPS5. Defaults come from KytyPS5; hardware uncertainty is recorded in TechnicalDebt.

The overlap bot flags the shared TechnicalDebt.md insertion line with #1616 and #1650. Their patches implement other functions and contain no NGS2 changes; this PR depends on neither.

Tested

Exact published head: 50956d8dc0e3184013e289723b68eaf1d2441b71, based on upstream ce64d8eb3603078b597a60a37496328de63df72a. Windows x86-64, WinLibs MinGW-w64 GCC 15.2.0, CMake 4.3.1, Ninja 1.13.2, Release.

Configured and built in a fresh isolated build directory. Full default build and libs build passed. No AnyPS5 source or objects from the combined development checkout were reused; the pinned upstream FFmpeg package was reused read-only. All 1,629 compile commands were checked for source isolation. Test registration, conventions and git diff --check passed; source remained clean and the head/tree matched before and after testing.

All 10 NGS2 tests passed (0 failed, 0 skipped), including ngs2_geometry and ngs2_core_geometry. These check the complete output bytes, poisoned input, repeat resets, canaries and null rejection. The same regression previously failed against the untouched reset stub.

Independent source/ABI/ownership review found no blocking findings. Defaults are based on the pinned public reference, not hardware measurement. Null-input console error precedence remains unverified. No PS5 hardware, retail-title or Linux runtime validation is claimed. This isolated run covers the NGS2 suites, not the full GPU suite. GitHub Actions currently requires maintainer approval; no hosted CI pass is claimed.

Checklist

  • Exact branch head independently built and tested; base recorded above
  • Open-PR implementation overlap screened; documentation overlap disclosed above
  • One topic per PR; follow-up work is separate
  • No investigation notes or images added to repository source
  • Unsupported paths remain explicit failures; limitations are recorded in TechnicalDebt
  • New third-party dependencies, if any, are pinned submodules built from source
  • Generic behavior, not specific to one title
  • Depends on: none
  • AI-assisted: yes, with OpenAI Codex; the PR author remains responsible for the submitted changes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4793625654 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1875). Originally posted by [Albaloola](https://github.com/Albaloola) on 2026-10-08T22:37:56Z. --- ### What Implement the listener and source parameter reset exports in both NGS2 aliases. Correct the placeholder structures to the public 60-byte listener and 108-byte source layouts, write the complete defaults, and clear reserved fields. Geometry calculation and spatialization remain unimplemented. ABI evidence: [SharpProspero](https://github.com/SvenGDK/SharpProspero/blob/d24b588831e6ade21f6e1ecb90c245f0e2a973d9/src/SharpProspero/Interop/Audio/Ngs2.cs) and [KytyPS5](https://github.com/KytyPS5/KytyPS5/blob/b10bd53dd3c225131405407e60d4313eba532dc3/src/libs/ngs2.cpp). Defaults come from KytyPS5; hardware uncertainty is recorded in TechnicalDebt. The overlap bot flags the shared `TechnicalDebt.md` insertion line with #1616 and #1650. Their patches implement other functions and contain no NGS2 changes; this PR depends on neither. ### Tested Exact published head: `50956d8dc0e3184013e289723b68eaf1d2441b71`, based on upstream `ce64d8eb3603078b597a60a37496328de63df72a`. Windows x86-64, WinLibs MinGW-w64 GCC 15.2.0, CMake 4.3.1, Ninja 1.13.2, Release. Configured and built in a fresh isolated build directory. Full default build and `libs` build passed. No AnyPS5 source or objects from the combined development checkout were reused; the pinned upstream FFmpeg package was reused read-only. All 1,629 compile commands were checked for source isolation. Test registration, conventions and `git diff --check` passed; source remained clean and the head/tree matched before and after testing. All 10 NGS2 tests passed (0 failed, 0 skipped), including `ngs2_geometry` and `ngs2_core_geometry`. These check the complete output bytes, poisoned input, repeat resets, canaries and null rejection. The same regression previously failed against the untouched reset stub. Independent source/ABI/ownership review found no blocking findings. Defaults are based on the pinned public reference, not hardware measurement. Null-input console error precedence remains unverified. No PS5 hardware, retail-title or Linux runtime validation is claimed. This isolated run covers the NGS2 suites, not the full GPU suite. GitHub Actions currently requires maintainer approval; no hosted CI pass is claimed. ### Checklist - [x] Exact branch head independently built and tested; base recorded above - [x] Open-PR implementation overlap screened; documentation overlap disclosed above - [x] One topic per PR; follow-up work is separate - [x] No investigation notes or images added to repository source - [x] Unsupported paths remain explicit failures; limitations are recorded in TechnicalDebt - [x] New third-party dependencies, if any, are pinned submodules built from source - [x] Generic behavior, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes, with OpenAI Codex; the PR author remains responsible for the submitted changes
github-actions[bot] commented 2026-10-08 22:42:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T22:42:57Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#1947 docs/dev/TechnicalDebt.md L40
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6070519298 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1875#issuecomment-6070519298). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T22:42:57Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #1947 | `docs/dev/TechnicalDebt.md` [L40](https://github.com/boykopovar/AnyPS5/blob/6cc0503dacc9d9697d23001d4103780ad2e9acba/docs/dev/TechnicalDebt.md#L40) | | |
oneandonlydean commented 2026-10-09 08:53:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:53:17Z.


Closing: no title is shown to reach sceNgs2GeomResetListenerParam or sceNgs2GeomResetSourceParam on main, and library functions go in when one does. Please reopen with the title ID and the log line if you find one.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077684252 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1875#issuecomment-6077684252). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T08:53:17Z. --- Closing: no title is shown to reach `sceNgs2GeomResetListenerParam` or `sceNgs2GeomResetSourceParam` on main, and library functions go in when one does. Please reopen with the title ID and the log line if you find one.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
boykopovar/AnyPS5!1875
No description provided.