feat(ngs2): implement legacy submixer UserFx callbacks #1302

Merged
TibixDev merged 1 commit from upstream-pr/1302 into main 2026-10-08 11:37:56 +00:00
TibixDev commented 2026-10-07 22:46:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-07T22:46:53Z.


What

Implement legacy submixer UserFx callbacks on mixed planar audio, including silent input. Keep callback data per voice, support removal and setup reset, and throw on callback failure.

Tested

Fedora 44, Release: all seven NGS2 tests pass. The new test covers audio generation, gain, separate voices, pause, resume, restart, removal, and recovery after callback failure. ABI sources and unverified console behavior are recorded in TechnicalDebt.md.

Checklist

  • Current main; no duplicate open PR.
  • One topic.
  • No new code comments.
  • Unsupported paths still throw; UI stubs are documented.
  • No notes, logs, or images in the repository.
  • No new third-party code.
  • General behavior.
  • Depends on: none.
  • AI-assisted: yes.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4779401948 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1302). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-07T22:46:53Z. --- ### What Implement legacy submixer UserFx callbacks on mixed planar audio, including silent input. Keep callback data per voice, support removal and setup reset, and throw on callback failure. ### Tested Fedora 44, Release: all seven NGS2 tests pass. The new test covers audio generation, gain, separate voices, pause, resume, restart, removal, and recovery after callback failure. ABI sources and unverified console behavior are recorded in `TechnicalDebt.md`. ### Checklist - [x] Current `main`; no duplicate open PR. - [x] One topic. - [x] No new code comments. - [x] Unsupported paths still throw; UI stubs are documented. - [x] No notes, logs, or images in the repository. - [x] No new third-party code. - [x] General behavior. - [x] Depends on: none. - [x] AI-assisted: yes.
github-actions[bot] commented 2026-10-08 04:37:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T04:37:31Z.


Progress report (b1c5f10 → 0d4db86)

➖ System libraries: 85.41% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNgs2.native Process
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6052352897 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1302#issuecomment-6052352897). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T04:37:31Z. --- <!-- progress-report --> ### Progress report (b1c5f10 → 0d4db86) ➖ **System libraries**: 85.41% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNgs2.native | `Process` | </details>
TibixDev commented 2026-10-08 07:01:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T07:01:49Z.


Rebased on bc1fbe81. Kept the PCM stream test registration alongside legacy UserFx coverage.

Fedora 44 Release: ngs2_core_render_tests, ngs2_render_tests, ngs2_atrac9_tests, ngs2_filter_tests, ngs2_custom_tests, ngs2_parse_tests, ngs2_stream_tests, ngs2_userfx_tests build; the targeted tests and contribution checks pass. Windows CI is pending.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6054423345 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1302#issuecomment-6054423345). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-08T07:01:49Z. --- Rebased on `bc1fbe81`. Kept the PCM stream test registration alongside legacy UserFx coverage. Fedora 44 Release: `ngs2_core_render_tests`, `ngs2_render_tests`, `ngs2_atrac9_tests`, `ngs2_filter_tests`, `ngs2_custom_tests`, `ngs2_parse_tests`, `ngs2_stream_tests`, `ngs2_userfx_tests` build; the targeted tests and contribution checks pass. Windows CI is pending.
adriadam10 commented 2026-10-08 11:27:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T11:27:00Z.


Checked: build + full ctest on current main (443/443, ngs2_userfx passes, and fails to build without the change). The 40-byte UserFx param and 48-byte process context match shadPS4 (ngs2.h, ngs2_submixer.h); channel count is bounded by the rack's maxChannels; rendering is reset if the callback throws; the unverified flag/error semantics are recorded in TechnicalDebt.

The PR only conflicted with main in docs/dev/TechnicalDebt.md (adjacent line); rebased, keeping both lines, no logic changes. Merging once CI is green on the rebased head.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6058834192 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1302#issuecomment-6058834192). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-08T11:27:00Z. --- Checked: build + full ctest on current `main` (443/443, `ngs2_userfx` passes, and fails to build without the change). The 40-byte `UserFx` param and 48-byte process context match shadPS4 (`ngs2.h`, `ngs2_submixer.h`); channel count is bounded by the rack's `maxChannels`; `rendering` is reset if the callback throws; the unverified flag/error semantics are recorded in TechnicalDebt. The PR only conflicted with `main` in `docs/dev/TechnicalDebt.md` (adjacent line); rebased, keeping both lines, no logic changes. Merging once CI is green on the rebased head.
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!1302
No description provided.